Guest User

Untitled

a guest
Jun 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. void outputfile(employee b[], int n)
  2. {
  3.  
  4. ofstream fout;
  5. char namefile[50];
  6. cout << "Введите название файлаa: ";
  7. cin >> namefile;
  8. fout.open(namefile);
  9. if (fout.fail()) {
  10. cout << "Ошибка!" << endl;
  11. }
  12. else {
  13. for (i = 0; i < n; i++)
  14. {
  15. fout << b[i].name << " " << b[i].stage << endl;
  16. }
  17. fout.close();
  18. }
  19. }
  20.  
  21. defauil:
  22. cout << "Нет такого номера" << endl;
  23. }
Add Comment
Please, Sign In to add comment