|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Linked lists part 1
>typedef float componentType; // I think this line is unnecessary. Am i
>correct?
>struct nodeType
>{
> componentType component;
> nodeType* link; // Lost me here
>};
The nodeType* link is necessary to refer to the next element in the LList.
You can't use a non-pointer here within nodeteype.
>
>typedef nodeType* nodePtr; // This is so you can use nodePtr varName as
>// opposed to nodeType* varName???
I assume yes.
Hope this is somewhat clear, if not email me.
-Jim Munro
<jimmn@xnet.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
|
|