Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- struct student
- {
- char FIO;
- int vozrast;
- char mesto;
- };
- int main()
- {
- cout<<"vvedite FIO, vozrast i mesto"<<endl;
- const int length = 3;
- student allstudent[length];
- for(int i = 0; i<length; i++)
- {
- cin>>allstudent[i].FIO;
- cin>>allstudent[i].vozrast;
- cin>>allstudent[i].mesto;
- }
- for(int i=0;i<2;i++)
- {
- {cout<<"FIO - "<<allstudent[i].FIO<<<<endl;
- cout<<"Vosrast - "<<allstudent[i].vozrast<<endl;
- cout<<"Mesto prozhivania - "<<allstudent[i].mesto<<endl;}
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement