Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. struct timetable {
  2. unsigned int group_num;
  3. char group_name;
  4. unsigned char lesson_type[30];
  5. unsigned int a_num;
  6. unsigned int day;
  7. unsigned int lesson_num;
  8. unsigned char surname[20];
  9. };
  10.  
  11.  
  12. void GetData(timetable *T, int N)
  13. {
  14. cin.ignore();
  15. for (int i = 0; i < N; i++)
  16. {
  17. cout << "\n";
  18. cout << "Номер группы: ";
  19. cin >> T[i].group_name;
  20. cout << "\n";
  21.  
  22. cout << "\n";
  23. cout << "Имя группы: ";
  24. cin.getline(T[i].group_name, 30);
  25.  
  26.  
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement