I guess I could/should have included a break in the for loop after it finds the sought node :)
Type: Posts; User: budala
I guess I could/should have included a break in the for loop after it finds the sought node :)
I wasn't expecting for all my problems to be solved. The fact that on this forum one doesn't get the code wrapped up in shiny paper is a great plus for me as it is more important to realise why...
Nope, still doesn't work! It doesn't delete the node i want when it does exist, but it does return 0 when i try to delete a non-existing node.
I colored the new lines of code red
int...
hi there :)
i have an array of linked lists, 10 of them to be precise. insertion works beautifully but deletion is a problem.
i want a function which returns an int upon deletion. 0 if the...