Advertisement
Guest User

lista.h

a guest
Mar 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #ifndef LISTA_H
  2. #define LISTA_H
  3.  
  4. #include "wezel.h"
  5.  
  6. class lista{
  7. Wezel *head;
  8. Wezel *tail;
  9. //Wezel *tail;
  10. int iloscel;
  11. public:
  12. lista(){
  13. head= NULL; tail = NULL;
  14. iloscel=0;
  15. }
  16. int wezilosc()const{
  17. return iloscel;}
  18. int& ilosc(){
  19. return iloscel;}
  20. bool empty() const;
  21. //const Wezel& wezPocz() const;
  22. void dodajPocz (const int nr, const std::string imie, const std::string naz, int rok, std::string kier, std::string spec);
  23. void dodajKoniec (const int nr, const std::string imie, const std::string naz, int rok, std::string kier, std::string spec);
  24. void Kasuj(int nr);
  25. void pokazliste();
  26. void WstawZa(const int nr, const std::string imie, const std::string naz, int rok, std::string kier, std::string spec, const int album);
  27. ~lista(){delete head;}
  28. void wczytajwiele(int ilosc);
  29. Wezel* wyszukaj(int nr);
  30. Wezel* wyszukaj2(std::string imie);
  31. };
  32. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement