http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linked lists part 1



Something happened last time to cut off my message. I will send this in 2
parts to make sure it doesn't happen again.my comments are //'s and his
comments are /* */

typedef float componentType; // I think this line is unnecessary. Am i
correct?
struct nodeType
{
	componentType component;
	nodeType* link;	// Lost me here
};

typedef nodeType* nodePtr;	// This is so you can use nodePtr varName as 
// opposed to nodeType* varName???

nodePtr head; /* External pointer to the list*/
nodePtr currPtr; /* Pointer to current node*/
nodePtr newNodePtr;	/* Pointer to the newest node*/



__________________________________________________
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