can"t understand why this will not compile. I've been working on tis all week end.
Need Help desperately
Expand|Select|Wrap|Line Numbers
- class TicTacToe
- {
- public:
- static void newGame();
- private:
- static char board[3][3]; // priviate menbers
- static char turn;
- static char turn2;
- static int turnRow;
- static int turnCol;
- static int entryCount;
- static bool entryError;
- };
- int r = 0;
- int c = 0;
- int entryCount = 0;
- char board;
- void newGame()
- {
- system("cls");
- // set turn back to 'O'
- entryCount = 0;
- for(r = 0; r < 3; r++)
- {
- for( c = 0;c < 3; c++)
- board[r][c] = ' ';
- }
- }