Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. struct student
  6. {
  7. char FIO;
  8. int vozrast;
  9. char mesto;
  10. };
  11.  
  12. int main()
  13. {
  14. cout<<"vvedite FIO, vozrast i mesto"<<endl;
  15. const int length = 3;
  16. student allstudent[length];
  17. for(int i = 0; i<length; i++)
  18. {
  19. cin>>allstudent[i].FIO;
  20. cin>>allstudent[i].vozrast;
  21. cin>>allstudent[i].mesto;
  22. }
  23.  
  24.  
  25. for(int i=0;i<2;i++)
  26. {
  27.  
  28. {cout<<"FIO - "<<allstudent[i].FIO<<<<endl;
  29. cout<<"Vosrast - "<<allstudent[i].vozrast<<endl;
  30. cout<<"Mesto prozhivania - "<<allstudent[i].mesto<<endl;}
  31. }
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement