Advertisement
Josif_tepe

Untitled

Oct 7th, 2023
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2. //#include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. struct ucenik{
  6.     string ime;
  7.     string prezime;
  8.    
  9.     void vnesi() {
  10.         cin >> ime >> prezime;
  11.        
  12.     }
  13.     void pecati() {
  14.         cout << ime << " " << prezime << endl;
  15.     }
  16. };
  17. int main() {
  18.     ucenik u;
  19.  
  20.     u.vnesi();
  21.     u.pecati();
  22.    
  23.    
  24.    
  25.     return 0;
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement