Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Student {
- public:
- char ime[50];
- int godini;
- double prosek;
- };
- int main() {
- int n;
- cin >> n;
- Student students[n];
- for(int i = 0; i < n; i++) {
- cin >> students[i].ime >> students[i].godini >> students[i].prosek;
- }
- for(int i = 0; i < n; i++) {
- cout << students[i].ime << " " << students[i].godini << " " << students[i].prosek << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement