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;
- Osoba (string imie, string nazwisko){}
- string getImie ()
- {
- return imie;
- }
- string getNazwisko()
- {
- return nazwisko;
- }
- }
- using namespace kartoteka.mockup.Kartoteka
- class Kartoteka {
- public:
- int imie;
- int nazwisko;
- void dodaj (Osoba nowa){};
- void usun (Osoba nowa){];
- int rozmiar ()
- {
- return 1;
- }
- boolean czyZawiera (Osoba nowa)
- {
- return 1;
- }
- Osoba pobierz (int index)
- {
- Osoba newOsoba;
- newOsoba.imie = Gal;
- newOsoba.nazwisko = Anonim;
- return newOsoba;
- }
- };
- using namespace kartoteka.Osoba
- class Kartoteka
- {
- public:
- vector <Osoba> osoby;
- int current;
- void dodaj (Osoba nowa)
- {
- osoby.push_back(nowa);
- }
- void usun (Osoba nowa)
- {
- osoby.pop_back();
- }
- int rozmiar ()
- {
- return osoby.size();
- }
- boolean czyZawiera (Osoba nowa)
- {
- return 1;
- }
- Osoba pobierz (int index)
- {
- Osoba newOsoba;
- newOsoba.imie = Gal;
- newOsoba.nazwisko = Anonim;
- return newOsoba;
- }
- }
- int main()
- {
- cout << "Hello world!" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement