作业帮 > 综合 > 作业

c++总出现这个问题 std:a namespace with this name does not exist

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/18 03:29:29
c++总出现这个问题 std:a namespace with this name does not exist
查了很多 msdn说是标准库没有正常安装,得重新装vs2005.
我用的是vs2005中文,重装了 也没效果.
我是用以下代码测试的
#include
#include "stdafx.h"
using namespace std;
int _tmain(int argc,_TCHAR* argv[])
{
int i=10;
cout
应该不是你安装部分的问题
经测试,你的问题是写法的问题,改成
#include "stdafx.h"
#include
using namespace std;
就oK了
你试试