Created
November 5, 2015 09:33
-
-
Save irrationnelle/e426ac5dcf6261f21d44 to your computer and use it in GitHub Desktop.
I missed the condition in sentence 'while', that is 'Tail != NULL'. But I can not understand why I must add this condition sentence...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void SLL_RemoveNode(Node** Head, Node* Remove) | |
{ | |
if((*Head)==NULL) | |
*Head = Remove->NextNode; | |
else | |
{ | |
Node* Tail = *Head | |
while(Tail->NextNode != Remove) | |
{ | |
Tail = Tail->NextNode; | |
} | |
Tail->NextNode = Remove->NextNode; | |
} | |
} |
Author
irrationnelle
commented
Nov 5, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment