Advertisement
Michal_Pilarski

zad2 spr

Oct 28th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct Pracownik
  6. {
  7.     string imie;
  8.     string nazwisko;
  9.     int wiek;
  10.     string plec;
  11. };
  12.  
  13. int main()
  14. {
  15.     Pracownik Pracownik1 = {"Michal","Pilarski",19,"M"};
  16.     cout << "Imie pracownika: " << Pracownik1.imie<<endl;
  17.     cout << "Nazwisko pracownika: " << Pracownik1.nazwisko<<endl;
  18.     cout << "Wiek pracownika: " << Pracownik1.wiek<<endl;
  19.     cout << "Plec pracownika: " << Pracownik1.plec<<endl;
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement