Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Osoba {
- public:
- string imie;
- string nazwisko;
- string ulica;
- int nrDomu;
- string kodPocztowy;
- string miasto;
- };
- int main(int argc, const char * argv[]) {
- Osoba osoba;
- osoba.imie = "Maciej";
- osoba.nazwisko = "Rusnarczyk";
- osoba.ulica = "Al. Alkoholikow";
- osoba.nrDomu = 12;
- osoba.kodPocztowy = "12-345";
- osoba.miasto = "Pcim dolny";
- cout << "-------------------------------------------------" << endl;
- cout << osoba.imie << " " << osoba.nazwisko << endl;
- cout << osoba.ulica << " " << osoba.nrDomu << endl;
- cout << osoba.kodPocztowy << " " << osoba.miasto << endl;
- cout << "-------------------------------------------------" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement