error C2871: 'std' : does not exist or is not a namespace
来源:互联网 发布:腾讯管家拦截域名解封 编辑:程序博客网 时间:2024/06/07 18:08
一般情况下
#include<iostream>
using namespace std;这是使用标准库的方法
要用std::名字空间 在包含标准库文件时不要带 ".h"
例如:#include<iostream>不要使用#include<iostream.h>
<fstream.h>是标准库出台前的头文件
<fstream>是标准库的头文件
using namesapce std;声明调用的是标准库的东西
标准库出台后为了不和以前的混淆
将类似于<fstream.h>的头文件放入到叫std的namesapce里并叫头文件为<fstream>
如果用了#include<fstream.h>
那么所有的东西都不会放在std名字空间里。
- 关于error C2871: 'std' : does not exist or is not a namespace处理
- 关于VC中 error C2871: 'std' : does not exist or is not a namespace
- 关于error C2871: ''std'' : does not exist or is not a namespace处理
- error C2871: 'std' : does not exist or is not a namespace
- C++ 编译出现: error C2871: 'std' : does not exist or is not a namespace 怎么解决
- 关于VC中 error C2871: 'std' : does not exist or is not a namespace
- error C2871: 'std' : does not exist or is not a namespace
- 关于VC中 error C2871: 'std' : does not exist or is not a namespace
- error C2871: 'std' : does not exist or is not a namespace
- 关于VC中 error C2871: 'std' : does not exist or is not a namespace
- 关于VC中 error C2871: 'std' : does not exist or is not a namespace
- error C2871: 'System' : a namespace with this name does not exist
- Error starting static Resources:* does not exist or is not a readable directory
- does not exist or is not a readable directory
- ..\TestApp does not exist or is not a readable directory
- Error: ‘shared_ptr’ in namespace ‘std’ does not name a type
- std' : is not a class or namespace name,解决
- Error:The type or namespace name 'Office' does not exist in the namespace 'Microsoft' 解决方法
- 理解矩阵
- android之ConnectivityManager简介,网络连接状态
- VS2008 编译时出现 error PRJ0003 : 生成 cmd.exe 时出错的解决方法
- js时间
- IPhone开发之C基础(一)
- error C2871: 'std' : does not exist or is not a namespace
- android与javascript交互调用
- C++对象的“深拷贝”和“浅拷贝”
- 一名嵌入式初级工程师的思考
- 【动态规划】【SCOI2009】粉刷匠
- java 中Long与long引起的bug
- QTP小型web自动化测试框架设计之核心:library
- 0x657ac2b2 (msvcr80d.dll) 处未处理的异常: 0xC0000005: 读取位置 0xccccccc8 时发生访问冲突
- nachos 线程同步机制