Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int rozm;
  6.  
  7. struct Zwierze
  8. {
  9.     string imie;
  10.     int wiek;
  11.     string plec;
  12. };
  13.  
  14. int main()
  15. {
  16.     Zwierze pies;
  17.  
  18.     cout << "Podaj imie Psa: ";
  19.     cin >> pies.imie;
  20.     cout << "Podaj wiek Psa: ";
  21.     cin >> pies.wiek;
  22.     cout << "Podaj plec Psa: ";
  23.     cin >> pies.plec;
  24.  
  25.     cout << pies.imie << endl;
  26.     cout << pies.wiek << endl;
  27.     cout << pies.plec << endl;
  28.  
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement