Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. struct TimePeriod
  2. {
  3. time_t beg;
  4. time_t end;
  5.  
  6. }
  7.  
  8. TimePeriod* Tik = new TimePeriod;
  9. ifstream in(path,ifstream::binary);
  10. if(!in)
  11. {
  12. cout << "Ошибка открытия файла " << path << endl;
  13. }
  14. else
  15. {
  16. cout << "Файл прочитан" << path << endl;
  17. }
  18. in.read((char*)Tik, sizeof (TimePeriod))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement