{
Food. X %=rand ();
Food. Y=rand () %;
}
}
//the error C2059: syntax error: '; '
Void CSheView: : OnExit ()
{
//TODO: Add your command handler code here
AfxMessageBox (" quit the game... ");
The exit 0;
}
//the error C2143: syntax error: missing '; 'before' constant '
CodePudding user response:
I can't see in before 'constant'? Behold with ConstantCodePudding user response:
1 the Snake didn't define2 the exit 0; Should be the exit (0);