I didn't try and compile and run your code, but a quick check still shows this problem that I mentioned previously.
As to what's wrong with your loop, each time you delete a node, your list gets smaller. Your loop variable i doesn't account for that. You really shouldn't be forcing array constructs onto a list anyway.Code:if(Head==NULL) { InList->Cur=NewBunny; InList->Next=Head; This is wrong
Did you try debugging yet?


Reply With Quote

Bookmarks