H
Huyvtq
I have a class Chess with the contructor:
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
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 ';'
and at line 2:
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
It seem that Compiler don't know what GameBoard is in class Chess.
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!
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
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 ';'
and at line 2:
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
It seem that Compiler don't know what GameBoard is in class Chess.
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!