Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int read_file(string filename, time_task * *beg, time_task * *end) {
- ifstream fin;
- fin.open(filename);
- if (!fin) {
- MessageBox(0, L"Нет файла!", L"Ошибка", MB_ICONERROR | MB_SETFOREGROUND);
- return 1;
- }
- time_task t;
- *beg = 0;
- while (getline(fin, t.d.cipher)) {
- getline(fin, t.d.department_code);
- getline(fin, t.d.fio);
- getline(fin, t.d.all_time);
- getline(fin, t.d.time_cpu);
- input(*beg, *end, t);
- }
- fin.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement