Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct TimePeriod
- {
- time_t beg;
- time_t end;
- }
- TimePeriod* Tik = new TimePeriod;
- ifstream in(path,ifstream::binary);
- if(!in)
- {
- cout << "Ошибка открытия файла " << path << endl;
- }
- else
- {
- cout << "Файл прочитан" << path << endl;
- }
- in.read((char*)Tik, sizeof (TimePeriod))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement