i want this code to keep track of whose turn it is: but i keep getting this error : error: a function-definition is not allowed here before '{' token
any help
void turn_it_is(int play1, int play2)
{
cout << ((turn_it_is%2)==1)?(play1:play2)<<
cout << " it's your turn ";
cin>> turn_it_is;
}