Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "lista.h"
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char** argv) {
- int ilosc;
- Wezel* tmp = new Wezel;
- lista* list = new lista;
- if (list->empty()==1)
- std::cout <<"Pusta lista" << std::endl;
- list->dodajPocz(22, "Piotr", "Tarn", 2, "AIR", "AAE");
- list->dodajPocz(23, "D", "W", 2, "AIR", "AAE");
- list->dodajKoniec(20, "S", "S", 3, "AIR", "AAA");
- list->dodajKoniec(21, "J", "S", 2, "AIR", "AAE");
- list->WstawZa(24, "A", "T", 3, "AIR", "AAS", 22);
- if (list->empty()==0)
- std::cout <<"Niepusta lista" << std::endl;
- //std::cout<<"Ile chcesz wczytac elem?"<< std::endl;
- //std::cin>> ilosc;
- //list->wczytajwiele(ilosc);
- list->pokazliste();
- std::cout<<"Wyszukaj nr albumu ktory chcesz usunac: "<< std::endl;
- std::cin>> ilosc;
- tmp=list->wyszukaj(ilosc);
- list->Kasuj(tmp->nralbumu);
- list->pokazliste();
- //getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement