|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Linked Lists part 2
He then said that the following segment creates a dynamic linked list with the values 12.8 45.2 70.1 head=new nodeType; // Huh? head->component=12.8; // Isn't this just *head.component=12.8; newNodePtr=new nodeType; // Again Huh? newNodePtr->component=45.2; head->link=newNodePtr; // Is this referring the link on?? newNodePtr=new nodeType; // Why again?? newNodePtr->component=70.1; // Okay currPtr->link=newNodePtr; // Huh, where did currPtr come into things newNodePtr->link=NULL; // Okay, help currPtr=newNodePtr; // Lost again __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|