注册 登录
编程论坛 VC++/MFC

帮忙看看为什么会这样子

天楚 发布于 2013-06-18 21:39, 456 次点击
程序代码:
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'
这个为什么?
我是第一次搞MFC,是按照别人博客学者做的!
2 回复
#2
azzbcc2013-06-18 22:43
exit(0)

是这样吧
#3
天楚2013-06-18 23:22
回复 2楼 azzbcc
谢谢!
1