编译现象疑惑.~.~.~
#include <iostream.h>
int main()
{
int x(10);
cout<<x<<endl;
return 0;
}
刚刚开始学C++,只是个环境测试程序,在g++ -o 1 1.cpp后总会有一大串提示:
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/ios
tream.h:31,
from 1.cpp:1:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
编译能顺利通过,就是有点不爽,那大概意思也明白,就是不晓得怎么做哈,,,赐教.~