Now my head's going to explode. Why on earth would someone want to reinvent Types with Banks?
A (type) object is a collection of variables in memory. A pointer is a variable which describes another position in memory - that is, the location of another variable or object. In a linked list, one of the variables in your object acts as a pointer to another object - specifically the next object in the list.
I hope this example is simple enough to showcase the general principle. When you understand it, look up at my previous example. If you still don't understand, let me know what it is you're having trouble with and I'll do my best to explain it.
For reference, here are some explanitory articles on linked lists:
http://en.wikipedia.org/wiki/Linked_list
http://www.codeproject.com/cpp/linkedlist.asp
can you break the explanation of how to use linked lists for a beginner programmer?
A (type) object is a collection of variables in memory. A pointer is a variable which describes another position in memory - that is, the location of another variable or object. In a linked list, one of the variables in your object acts as a pointer to another object - specifically the next object in the list.
Type node Field nextNode.node End Type a1.node = New node a2.node = New node a3.node = New node ; chain them together a1\nextNode = a2 a2\nextNode = a3 ; now we only need to know about the first node to find the rest first_node.node = a1 second_node.node = a1\nextNode third_node.node = a1\nextNode\nextNode
I hope this example is simple enough to showcase the general principle. When you understand it, look up at my previous example. If you still don't understand, let me know what it is you're having trouble with and I'll do my best to explain it.
For reference, here are some explanitory articles on linked lists:
http://en.wikipedia.org/wiki/Linked_list
http://www.codeproject.com/cpp/linkedlist.asp