Guest User

Untitled

a guest
Jul 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. typedef enum
  2. {
  3. LIGHT,
  4. DARK,
  5. NONE
  6. } Color;
  7.  
  8. class Board
  9. {
  10. public:
  11. Color toMove();
  12. private:
  13. Color side;
  14. };
  15.  
  16. Color Board::toMove()
  17. {
  18. return side;
  19. }
  20.  
  21. Program received signal SIGSEGV, Segmentation fault.
  22. 0x004025ee in Board::toMove (this=0x0)
  23. at ...board.cpp:19
  24. 19 return side;
  25.  
  26. Board::toMove (this=0x0)
Add Comment
Please, Sign In to add comment