关于警告信息 warning C4995: “_OLD_IOSTREAMS_ARE_DEPRECATED”:名称被标记为否决的 #pragma

完整的问题如下:
一、建立一个Win32 控制台应用程序
二、引入#include

 1<iostream.h>   
 2三、编译   
 3  
 4\------ 已启动生成:项目:标准, 配置:Debug Win32 ------   
 5  
 6正在编译...   
 7stdafx.cpp   
 8c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\useoldio.h(29) : warning C4995: “_OLD_IOSTREAMS_ARE_DEPRECATED”:名称被标记为否决的 #pragma   
 9正在编译...   
10standrad.cpp   
11正在链接...   
12  
13生成日志保存在“file://d:\浪湾实验室\vc7工程\例程\数据结构\公式化描述线性表\标准\Debug\BuildLog.htm”中   
14标准 - 0 错误,1 警告   
15  
16\---------------------- 完成 ---------------------   
17  
18生成:1 已成功, 0 已失败, 0 已跳过   
19  
20这是什么意思?   
21  
22Visual C++ .NET 遵循新的C++标准,而旧标准的 iostream.h 库将被 Visual C++ .NET 否决,而且在以后的版本中可能会从 Visual C++ 中移除。   
23要使用新的标准 C++ 库,只需要简单地用   
24#include <iostream>   
25using namespace std;   
26来替换 #include <iostream.h>,其它标准 C++ 库以此类推。   
27  
28参阅:   
29标准 C++ 库手册   
30MSDN Visual C++ 概念:移植和升级 升级到标准 C++ 库</iostream.h></iostream></iostream.h>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus