![]() |
#2
azzbcc2013-06-18 22:43
|

void CSNAKEView::OnExit()
{
// TODO: Add your command handler code here
AfxMessageBox("退出游戏.");
exit 0;
}
编译错误:D:\程序\SNAKE\SNAKEView.cpp(301) : error C2143: syntax error : missing ';' before 'constant'{
// TODO: Add your command handler code here
AfxMessageBox("退出游戏.");
exit 0;
}
这个为什么?
我是第一次搞MFC,是按照别人博客学者做的!