[try Beta version]
Not logged in

 
linkedlist

Nov 18, 2010 at 3:13am
hello,

I am having a hard time understand the linkedlist (add,insert,delete) at first or at last. I attempted to search online and read books but I still dont get it. It's really confusing.

can someone out there help me with this?
Nov 18, 2010 at 10:57am
do you mean std::list?
Nov 18, 2010 at 1:40pm
If you mean std::list have a look at http://www.cplusplus.com/reference/stl/list/.
Nov 18, 2010 at 2:30pm
awesome site! im so glad I found it


http://www.iintense.com
Nov 18, 2010 at 6:18pm
the intesen site doesnt have anything at all
Nov 18, 2010 at 6:19pm
raggers, i was talking about the linkedlist, nodes to nodes etc..
Nov 18, 2010 at 6:55pm
std::list is a linked list. But a linked list, in general, is simply a collection of nodes which hold some data and a pointer to the next node (and, in the case of a doubly linked list, a pointer to the previous node too). Inserting or removing a node is just a matter of deallocating memory and rearranging pointers. Wikipedia has a pretty good explanation: http://en.wikipedia.org/wiki/Linked_list
Last edited on Nov 18, 2010 at 6:55pm
Topic archived. No new replies allowed.