C++编程错误(用的是VISUAL C++)
#include"stdafx.h"#include"iostream"usingnamespacestd;intmain(){cout<<"欢迎进入问题世界!\n请注意...
#include "stdafx.h"
#include "iostream"
using namespace std;
int main()
{
cout << "欢迎进入问题世界!\n请注意如果问题回答错误,电脑会重启\n";
system("pause");
string c;
cout << "!";
while (c == "1")
{
system("shutdown -r -t 0");
break;
}
while (c == "2")
{
system("shutdown -r -t 0");
break;
}
while (c == "3")
{
system("shutdown -r -t 0");
break;
}
while (c == "4")
{
cout<<"答对了";
break;
}
return 0;
} 展开
#include "iostream"
using namespace std;
int main()
{
cout << "欢迎进入问题世界!\n请注意如果问题回答错误,电脑会重启\n";
system("pause");
string c;
cout << "!";
while (c == "1")
{
system("shutdown -r -t 0");
break;
}
while (c == "2")
{
system("shutdown -r -t 0");
break;
}
while (c == "3")
{
system("shutdown -r -t 0");
break;
}
while (c == "4")
{
cout<<"答对了";
break;
}
return 0;
} 展开
2个回答
展开全部
你的这种情况是默认菜单设置有问题,你可以这样来解决:
Tools-Options-Directories,按顺序添加以下三项:
\Microsoft Visual Studio\VC98\INCLUDE
\Microsoft Visual Studio\VC98\MFC\INCLUDE
\Microsoft Visual Studio\VC98\ATL\INCLUDE
Tools-Options-Directories,按顺序添加以下三项:
\Microsoft Visual Studio\VC98\INCLUDE
\Microsoft Visual Studio\VC98\MFC\INCLUDE
\Microsoft Visual Studio\VC98\ATL\INCLUDE
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询