Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IntLinkedList::~IntLinkedList()
- {
- IntNode *temp = this->head;
- while(temp!=NULL)
- {
- IntNode *temp1 = temp;
- temp = temp->getNext();
- delete temp1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement