Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. tttBoard::tttBoard() {
  2. isX = true;
  3. for (int x = 0; x < 3; ++x) {
  4. for (int y = 0; y < 3; ++y) {
  5. gBoard[x][y]=sEmp;
  6. }
  7. }
  8. }
  9.  
  10. error C2589: '(' : illegal token on right side of '::'
  11. error C2059: syntax error : '::'
  12. error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  13.  
  14. #ifndef tttBoard
  15. #define tttBoard
  16.  
  17. class tttBoard {
  18. public:
  19. tttBoard();
  20. void Draw();
  21. void Move(int x, int y);
  22. char* getValue(int x, int y);
  23. private:
  24. enum sVal {
  25. sEmp,
  26. sX,
  27. sO
  28. };
  29.  
  30. sVal gBoard[3][3];
  31. bool isX;
  32. }
  33.  
  34. #endif
  35.  
  36. #ifndef tttBoard
  37. #define tttBoard
  38.  
  39. class tttBoard {
  40.  
  41. #ifndef TTT_BOARD_H
  42. #define TTT_BOARD_H
  43.  
  44. class tttBoard {
  45. // stuff
  46. };
  47.  
  48. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement