Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Student
- {
- public:
- string imie;
- string nazwisko;
- int wiek;
- void wyswietl();
- private:
- long long int pesel;
- string nr_dowodu;
- };
- void Student::wyswietl()
- {
- cout<<"Student"<<imie<<" "<<nazwisko<<endl;
- }
- int main()
- {
- Student osoba1;
- osoba1.imie="Kasia";
- osoba1.nazwisko="Bracha";
- osoba1.wiek=23;
- osoba1.wyswietl();
- return 0;
- }
Add Comment
Please, Sign In to add comment