Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct vojska {
- int vojnici;
- string ime;
- string financiska_sostojba;
- string ime_na_generalot;
- void input() {
- cin >> vojnici >> ime >> financiska_sostojba >> ime_na_generalot;
- }
- void print() {
- cout << "broj na vojnici " << vojnici << endl;
- cout << "ime na vojnikot " << ime << endl;
- cout << "financiska_sostojba na generalot " << financiska_sostojba << endl;
- cout << "ime na generalot " << ime_na_generalot << endl;
- }
- };
- int main() {
- vojska a;
- a.input();
- a.print();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement