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