Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- class TextList{
- private:
- class wezel{
- public:
- char* tekst;
- wezel* next;
- wezel* prev;
- };
- wezel* begin;
- wezel* end;
- public:
- TextList(): begin(0), end(0){};
- ~TextList();
- void dodaj(const char* txt);
- };
- TextList::~TextList() {
- wezel* tmp;
- while(begin!=0){
- tmp=begin;
- begin=begin->next;
- delete tmp->tekst;
- delete tmp;
- }
- begin=0;
- end=0;
- }
- void TextList::dodaj(const char* txt) {
- wezel* tmp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement