Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void outputfile(employee b[], int n)
- {
- ofstream fout;
- char namefile[50];
- cout << "Введите название файлаa: ";
- cin >> namefile;
- fout.open(namefile);
- if (fout.fail()) {
- cout << "Ошибка!" << endl;
- }
- else {
- for (i = 0; i < n; i++)
- {
- fout << b[i].name << " " << b[i].stage << endl;
- }
- fout.close();
- }
- }
- defauil:
- cout << "Нет такого номера" << endl;
- }
Add Comment
Please, Sign In to add comment