Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. class Osoba{
  5. public:
  6. string imie;
  7. string nazwisko;
  8.  
  9. Osoba (string imie, string nazwisko){}
  10.  
  11. string getImie ()
  12. {
  13. return imie;
  14. }
  15. string getNazwisko()
  16. {
  17. return nazwisko;
  18. }
  19.  
  20.  
  21. }
  22. using namespace kartoteka.mockup.Kartoteka
  23. class Kartoteka {
  24. public:
  25. int imie;
  26. int nazwisko;
  27.  
  28. void dodaj (Osoba nowa){};
  29. void usun (Osoba nowa){];
  30. int rozmiar ()
  31. {
  32. return 1;
  33. }
  34. boolean czyZawiera (Osoba nowa)
  35. {
  36. return 1;
  37. }
  38. Osoba pobierz (int index)
  39. {
  40. Osoba newOsoba;
  41. newOsoba.imie = Gal;
  42. newOsoba.nazwisko = Anonim;
  43. return newOsoba;
  44. }
  45. };
  46. using namespace kartoteka.Osoba
  47. class Kartoteka
  48. {
  49. public:
  50. vector <Osoba> osoby;
  51. int current;
  52. void dodaj (Osoba nowa)
  53. {
  54. osoby.push_back(nowa);
  55. }
  56. void usun (Osoba nowa)
  57. {
  58. osoby.pop_back();
  59. }
  60. int rozmiar ()
  61. {
  62. return osoby.size();
  63. }
  64. boolean czyZawiera (Osoba nowa)
  65. {
  66. return 1;
  67. }
  68. Osoba pobierz (int index)
  69. {
  70. Osoba newOsoba;
  71. newOsoba.imie = Gal;
  72. newOsoba.nazwisko = Anonim;
  73. return newOsoba;
  74. }
  75.  
  76. }
  77.  
  78. int main()
  79. {
  80. cout << "Hello world!" << endl;
  81. return 0;
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement