Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tttBoard::tttBoard() {
- isX = true;
- for (int x = 0; x < 3; ++x) {
- for (int y = 0; y < 3; ++y) {
- gBoard[x][y]=sEmp;
- }
- }
- }
- error C2589: '(' : illegal token on right side of '::'
- error C2059: syntax error : '::'
- error C2334: unexpected token(s) preceding '{'; skipping apparent function body
- #ifndef tttBoard
- #define tttBoard
- class tttBoard {
- public:
- tttBoard();
- void Draw();
- void Move(int x, int y);
- char* getValue(int x, int y);
- private:
- enum sVal {
- sEmp,
- sX,
- sO
- };
- sVal gBoard[3][3];
- bool isX;
- }
- #endif
- #ifndef tttBoard
- #define tttBoard
- class tttBoard {
- #ifndef TTT_BOARD_H
- #define TTT_BOARD_H
- class tttBoard {
- // stuff
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement