I have a Human class that is derived publicly from a pure Player class.
Player class includes <vector>
Human class includes Player
In the human class i define a function, which is not defined in Player class (this is just a function related to Human class alone... it has nothing to do with Player):
Code:
int bet(vector<int>& availableBets, HINSTANCE hinstance);
Code:
int Human::bet(vector<int>& availableBets, HINSTANCE hinstance)
{
//this function should pop up a modal dialog box
//so that the player can choose his bet
//get handles to all of the buttons to disable
//some if needed
_bet = (int)DialogBox(hinstance, //application instance
MAKEINTRESOURCE(IDD_ChooseBet), //style
0, //parent
(DLGPROC)ChooseBetProc //dialog procedure
);
}
there is nothing wrong with the implementation but i got these error when compiling:
error C2061: syntax error : identifier 'vector'
error C2062: type 'int' unexpected
error C2143: syntax error : missing ';' before '{'
error C2447: '{' : missing function header (old-style formal list?)
what is wrong?