HI i am trying to write a deconstructor for a linked list but it keeps giving me errors.
Code:LinkedListCollection::~LinkedListCollection() { intListElement *current= this->head_; intListElement *next1=current; while(current!=0){ next1->next=current->next; delete current; current = next1; } }



3Likes
LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.
CornedBee