Be sure temp = start_ptr at the beginning of the CD :: list() function and write the if(temp == NULL) control before the loop otherwise the program always compares the temp == NULL or not.But you're already doing this control with the do-while's condition (temp != NULL)
Last edited by FoX_; May 20th, 2007 at 4:50 pm.
Reputation Points: 10
Solved Threads: 7
Junior Poster in Training
Offline 53 posts
since Mar 2007