Chess(const GameBoard& argGameBoard,int,int,Color,int); //line 1
and a property:
GameBoard& mGameBoard; //line 2
to creat a reference to one obj of GameBoard: :mGameBoard(argGameBoard) at constructor.
But when It's compiled (by VC2005++). This errors occured:
at line 1
Expand|Select|Wrap|Line Numbers
- 1>e:\vc2005\chessgame\src\Chess.h(34) : error C2059: syntax error : '<cv-qualifer>'
- 1>e:\vc2005\chessgame\src\Chess.h(34) : error C2238: unexpected token(s) preceding ';'
Expand|Select|Wrap|Line Numbers
- 1>e:\vc2005\chessgame\src\Chess.h(69) : error C2143: syntax error : missing ';' before '&'
- 1>e:\vc2005\chessgame\src\Chess.h(69) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Here class GameBoard I have defined and included. It have a property:
Stack<TurnHistory>& aReport;
Who can tell me what it is?
Tks a lot!