Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <queue>
- #include <cmath>
- #include <algorithm>
- using namespace std;
- struct Student {
- int indeks;
- int godina_na_raganeje;
- string ime;
- string prezime;
- Student() {}
- Student(int _indeks, int _godina_na_raganje, string _ime, string _prezime) {
- indeks = _indeks;
- godina_na_raganeje = _godina_na_raganje;
- ime = _ime;
- prezime = _prezime;
- }
- };
- int main() {
- Student s(10, 2001, "josif", "tepegjozov");
- cout << s.ime << " " << s.prezime << " " << s.indeks << " " << s.godina_na_raganeje << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement