Home > Software engineering >  O great god explain what is wrong, the two errors, so that can see errors to?
O great god explain what is wrong, the two errors, so that can see errors to?

Time:10-23

If (Snake [0]. * 20 x==the Snake) [r]. Isfo x * 20 & amp; & The Snake [0]. Y * 20==Snake [isfo] y * 20)
{
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 Constant

CodePudding user response:

1 the Snake didn't define
2 the exit 0; Should be the exit (0);
  • Related