Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <algorithm>
- #include <vector>
- using namespace std;
- struct student {
- string ime, prezime;
- int broj_na_indeks;
- double prosek;
- string smer;
- };
- int main()
- {
- int n;
- cin >> n;
- student niza[n];
- for(int i = 0; i < n; i++) {
- cin >> niza[i].ime >> niza[i].prezime;
- cin >> niza[i].prosek >> niza[i].smer;
- }
- for(int i = 0; i < n; i++) {
- cout << niza[i].ime << " " << niza[i].prezime << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement