OK, I think I see what you're trying to do now. From the MSVC++ help files:
This error will occur only after another error and only for member functions defined inside their class.
Are you trying to do this?
Code:
class TicTacToe {
private:
enum Status { WIN, DRAW, CONTINUE };
char board[3][3] =
{
'a', 'b', 'c',
'd', 'e', 'f',
'g', 'h', 'i'
};
public:
TicTacToe();
void makeMove(void);
bool validMove( int, int );
void printboard();
bool xoMove( int );
Status gamestatus( void );
};
If so, you can't assign a value to a variable in the class declaration. You should assign a value to board in the class constructor.
Code:
class TicTacToe {
private:
enum Status { WIN, DRAW, CONTINUE };
char board[3][3];
public:
TicTacToe();
void makeMove(void);
bool validMove( int, int );
void printboard();
bool xoMove( int );
Status gamestatus( void );
};
TicTacToe::TicTacToe()
{
//assign values to board
}