My, my, impatient little poster aren't we.
If you are going to allow removal of a random node from within a list there are several protocols I've seen. In the first scenario you need to know the node to remove, and, if the node to remove isn't the first node in the list, the node pointing to the node to remove. Then you can assign nodeToRemove->next to nodePointingToNodeToRemove->next, change nodeToRemove->next to Null, and then delete nodeToRemove.
I've also seen some people keep track of just one node and use a convention similar to nodePointingToNodeToRemove->next for for the node to remove. In this scenario the syntax then becomes find the node nodePointingToNodeToRemove->next->ID == desired value, assign nodePointingToNodeToRemove->next to temp, then assign nodePointingToNodeToRemove->next->next to nodePointing ToRemove->next and then delete temp, or something like that.
You can try one approach or the other, perfect it, and adapt it as necessary for your code.
Good luck.
Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396