View Single Post
Old May 22nd, 2005, 5:30 AM   #2
ZenMasterJG
Hobbyist Programmer
 
ZenMasterJG's Avatar
 
Join Date: Nov 2004
Location: Boston, MA
Posts: 148
Rep Power: 4 ZenMasterJG is on a distinguished road
Send a message via AIM to ZenMasterJG
to find the one to delete, you need to "traverse" the list.
this involves checking each node to see if its the one that needs to be deleted, if not, move on to the next. Also, life is easier if you check the node ahead of current. (cuz current.next needs to be set to point to the node after the to-be-deleted-node)
hope that helps, if not, i'll try and find some of my linked list code for you to gander at when its not 6:30 in the morning
ZenMasterJG is offline   Reply With Quote