change this
Actor* A=FirstActor; Actor* A2; do{ A2=A->next; delete A; A=A2; } while (A!=NULL);
to this
Actor* A=FirstActor; Actor* A2; while(A!=NULL){ A2=A->next; delete A; A=A2; }
Remeber do while check at the end of the loop not the beginning.
[edited by - Monder on July 27, 2002 6:29:33 PM]