Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- //#include <bits/stdc++.h>
- using namespace std;
- struct ucenik{
- string ime;
- string prezime;
- void vnesi() {
- cin >> ime >> prezime;
- }
- void pecati() {
- cout << ime << " " << prezime << endl;
- }
- };
- int main() {
- ucenik u;
- u.vnesi();
- u.pecati();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement