I am trying to trap some memory leaks using the debug heap functions.
The following statements set up the heap debugger.
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
However, when I use _CrtDumpMemoryLeaks();
I get information in the following format (ONLY ONE...
That's whatI think too (i.e. the class definition is ok, the problem is elsewhere).
If I compile the class as shown the compiler comes up with the same error but for the "class PathSquare" line, so I had to change the line to "class (Path Square)" as shown the in MSDN...
I am writing a pac man game to practice using the Windows API. I recently added pathfinding using an A* algorithm. To do this I used a class shown below:
//////////////////////////////////////////////////////////////////////////////
// Class : PathSquare
//
// PathSquare objects are used in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.