parameter error

1
2
3
playerTurn(isTurn,player_turn,isEmpty(&player_turn));
void playerTurn(bool&,char&,bool(char*));
bool isEmpty(char*);



can someone tell me why i keep getting this error?

'playerTurn' : cannot convert parameter 3 from 'bool' to 'bool (__cdecl )(char )
Your playerTurn expect a function as third parameter.

You are passing result of calling some function with one parameter. Apparently this function returns bool.
oh i see, so in my code im passing a whole function. it should be

void playerTurn(bool&,char&,bool);
since it only need what the function will return
so the declaration for the 3rd parameter should only bool, because in my code its saying that it passes a whole function that only uses for passing arguments
thanks
Topic archived. No new replies allowed.