Advertisement
Josif_tepe

Untitled

Mar 18th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <algorithm>
  4. #include <vector>
  5. using namespace std;
  6.  
  7. struct student {
  8. string ime, prezime;
  9. int broj_na_indeks;
  10. double prosek;
  11. string smer;
  12.  
  13. };
  14.  
  15. int main()
  16. {
  17. int n;
  18. cin >> n;
  19. student niza[n];
  20. for(int i = 0; i < n; i++) {
  21. cin >> niza[i].ime >> niza[i].prezime;
  22. cin >> niza[i].prosek >> niza[i].smer;
  23. }
  24. for(int i = 0; i < n; i++) {
  25. cout << niza[i].ime << " " << niza[i].prezime << endl;
  26.  
  27. }
  28. return 0;
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement