Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main()
- {
- struct student
- {
- string imie;
- string nazwisko;
- int rok;
- int wiek;
- double stypN;
- double stypS;
- };
- student a[5];
- a[0]={"Kacper","Piechut",2000,19,3000,2000};
- a[1]={"Jakub","Maminski",2000,20,5000,1000};
- a[2]={"Marcel","Kowalski",2000,18,2000,1000};
- a[3]={"Jan","Biernacki",2000,25,5000,1500};
- a[4]={"Andrzej","Gora",2000,20,3000,2000};
- for(int i=0;i<5;i++)
- {
- cout<<a[i].imie<<" ";
- cout<<a[i].nazwisko<<" ";
- cout<<a[i].rok<<" ";
- cout<<a[i].wiek<<" ";
- cout<<a[i].stypN<<" ";
- cout<<a[i].stypS<<endl;
- }
- for(int i)
- if(a[i].nazwisko[a[i].nazwisko.size()-1]=='i')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement