Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct Pracownik
- {
- string imie;
- string nazwisko;
- int wiek;
- char plec;
- };
- int main()
- {
- Pracownik p1;
- p1.imie="Kuba";
- p1.nazwisko="Kowalski";
- p1.wiek=19;
- p1.plec='m';
- cout<< "Twoje imie to....." << p1.imie << endl;
- cout<< "Twoje nazwisko to...." << p1.nazwisko << endl;
- cout<< "Twoj wiek to....." << p1.wiek << endl;
- cout<< "Twoja plec to....." << p1.plec << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement