Advertisement
JakubJaneczek

2

Oct 28th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. struct Pracownik
  5. {
  6.     string imie;
  7.     string nazwisko;
  8.     int wiek;
  9.     char plec;
  10. };
  11. int main()
  12. {
  13.     Pracownik p1;
  14.     p1.imie="Kuba";
  15.     p1.nazwisko="Kowalski";
  16.     p1.wiek=19;
  17.     p1.plec='m';
  18.     cout<< "Twoje imie to....." <<  p1.imie << endl;
  19.     cout<< "Twoje nazwisko to...." <<  p1.nazwisko << endl;
  20.     cout<< "Twoj wiek to....." <<  p1.wiek << endl;
  21.     cout<< "Twoja plec to....." <<  p1.plec << endl;
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement