Thank you. I had it all working for a while, then I decided to include a 'resetEnv' member. Something wasn't working and now I'm way off on a tangent. Suppose I have this:
typedef int* IntPoint;
Then have a default constructor with, say:
lifeBoard::lifeBoard(int newRCOUNT,int newCCOUNT)
void lifeBoard::setEnv(int newRCOUNT, int newCCOUNT)
If I ever want to reference *world.RCOUNT, I use this:
void lifeBoard::resetEnv(int newRCOUNT, int newCCOUNT)
for(int row=0, row<(world->RCOUNT),row++)
delete  world->board[row];
delete  world->neighborCount[row];
delete  world->board;
delete  world->neighborCount;
But the compiler spits out this:
/home/milo/ENG_38/dev > g++ lifeClass-point.cpp
lifeClass-point.cpp: In method `void lifeBoard::resetEnv(int, int)':
lifeClass-point.cpp:59: parse error before `)'
lifeClass-point.cpp:62: void value not ignored as it ought to be
lifeClass-point.cpp:63: parse error before `}'
This is the first function after the class dec, and I'm sure it'd continue on the next one if I moved it.
I know that this is a total overkill for the problem, I am just trying to learn the tools (understand pointers?)
Can you see where I'm going wrong?