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]

RE: Linked Lists



> might want to remember to clean it up too...

Yeah, I didn't, did I? hehe ... well, one gets too lazy by the years, I
guess :)

So, John, add something like this:

	pTemp = list->HEAD;
	nodeType *pTemp2 = pTemp;

	while (pTemp)
	{
		pTemp2 = pTemp;
		delete (pTemp);
		pTemp = pTemp2;
	}

	delete (list);

Ciao,
Ron Nanko




=================================================================
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