你的括号‘(’ 是在中文状态下输入的 ,要改为英文状态下输入的 如:if(menuindex==0)showpicture("监控中心");if(menuindex==1)ShowPicture("报表");if(menuindex==2)exit(0);