Linked Lists
Hello
I have a problem with link lists. This is my code to initialize the LLs.
for(f=b;f;f=f->next)
{
Now it loops until I break with some condition
}
The result looks like this
??!f!?? f = f->next f=f->next->next etc.
Now at the end of the loop f has the value f->next.... .What I want to ask is how can i get it to store only the first ??!f!?? in another variable?
Im not entierly sure what you mean but I''ll have a go...
break after the first loop...
you do realise why it is looping for ever don''t you?
break after the first loop...
you do realise why it is looping for ever don''t you?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement