Advertisement
pichumy

Untitled

Feb 7th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. IntLinkedList::~IntLinkedList()
  2. {
  3. IntNode *temp, *temp1;
  4. for(temp = head, temp1 = temp->getNext(); temp1!=NULL; temp1=temp1->getNext(),temp=temp->getNext())
  5. {
  6. delete temp;
  7. }
  8. delete temp1;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement