Does anyone know of any examples of global link list?
Does anyone know of any examples of global link list?
Did you try http://www.google.com/search?q=linked+lists?
If you understand what you're doing, you're not learning anything.
I don't know what you mean by global, but there's a linked list tutorial here at Cprogramming.
- Linked Lists The basics of singly linked lists http://www.cprogramming.com/tutorial/lesson15.html
actually, that tutorial is not fully correct. For example, this
Code:struct node { int x; node *next; };
what is incorrect about that? Looks like valid C++ to me
It should be:The original version could be made valid with an appropriate typedef.Code:struct node { int x; struct node *next; };
Oops, sorry, it is C++. As shown by pdc, change the struct definition, and the print line:
To:Code:cout<< conductor->x;and you've got the C version. I guess that's assuming your compiler will compile the // comments.Code:printf( "%d ", conductor->x );
have'nt heard the word global link list.do tell me if it is diff than link list.
in between wat r u trying to do swoopy.he dont know link list and u r telling him how to access members
Do you have to try to be this stupid, or does it just come natural? He was shown an example of how to search for linked lists. He was shown an example of how to set up a node for a linked list. Why is it then, he shouldn't be shown how to access members of said node?
You should change your name to "I'm a ........ing idiot."
Quzah.
Hope is the first step on the road to disappointment.