Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef enum
- {
- LIGHT,
- DARK,
- NONE
- } Color;
- class Board
- {
- public:
- Color toMove();
- private:
- Color side;
- };
- Color Board::toMove()
- {
- return side;
- }
- Program received signal SIGSEGV, Segmentation fault.
- 0x004025ee in Board::toMove (this=0x0)
- at ...board.cpp:19
- 19 return side;
- Board::toMove (this=0x0)
Add Comment
Please, Sign In to add comment