Monday, December 19, 2005

Likewise, this meant something to me on October 30, 1997

List::~List()
{
Node *temp;

tail->next = NULL;//breaks circularity of list
tail = NULL;
delete tail;

while(head)
{
temp = head;
head = head->next;
delete temp;
}

delete head;

}

No comments: