Advertisement
Guest User

main.cpp

a guest
Mar 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #include "lista.h"
  2.  
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4.  
  5. int main(int argc, char** argv) {
  6. int ilosc;
  7. Wezel* tmp = new Wezel;
  8. lista* list = new lista;
  9. if (list->empty()==1)
  10. std::cout <<"Pusta lista" << std::endl;
  11. list->dodajPocz(22, "Piotr", "Tarn", 2, "AIR", "AAE");
  12. list->dodajPocz(23, "D", "W", 2, "AIR", "AAE");
  13. list->dodajKoniec(20, "S", "S", 3, "AIR", "AAA");
  14. list->dodajKoniec(21, "J", "S", 2, "AIR", "AAE");
  15. list->WstawZa(24, "A", "T", 3, "AIR", "AAS", 22);
  16. if (list->empty()==0)
  17. std::cout <<"Niepusta lista" << std::endl;
  18. //std::cout<<"Ile chcesz wczytac elem?"<< std::endl;
  19. //std::cin>> ilosc;
  20. //list->wczytajwiele(ilosc);
  21. list->pokazliste();
  22. std::cout<<"Wyszukaj nr albumu ktory chcesz usunac: "<< std::endl;
  23. std::cin>> ilosc;
  24. tmp=list->wyszukaj(ilosc);
  25. list->Kasuj(tmp->nralbumu);
  26. list->pokazliste();
  27. //getch();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement