Advertisement
Josif_tepe

Untitled

May 11th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include <iostream>
  2. #include <queue>
  3. #include <cmath>
  4. #include <algorithm>
  5. using namespace std;
  6.  
  7.  
  8. struct Student {
  9.     int indeks;
  10.     int godina_na_raganeje;
  11.     string ime;
  12.     string prezime;
  13.    
  14.     Student() {}
  15.    
  16.     Student(int _indeks, int _godina_na_raganje, string _ime, string _prezime) {
  17.         indeks = _indeks;
  18.         godina_na_raganeje = _godina_na_raganje;
  19.         ime = _ime;
  20.         prezime = _prezime;
  21.     }
  22.    
  23.  
  24. };
  25.  
  26. int main() {
  27.    
  28.     Student s(10, 2001, "josif", "tepegjozov");
  29.     cout << s.ime << " " << s.prezime << " " << s.indeks << " " << s.godina_na_raganeje << endl;
  30.     return 0;
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement