免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1429 | 回复: 6
打印 上一主题 下一主题

[C++] c++ 编译问题. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-31 18:14 |只看该作者 |倒序浏览
#include <iostream.h>;
main(){
        cout<<"hello, good guy."<<endl;
        return 0;
}

$ g++ test.cpp

In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from test.cpp:1:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This fi
le 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 in
clude substituting the <X>; header for the <X.h>; header for C++ includes, or <sst
ream>; instead of the deprecated header <strstream.h>;. To disable this warning u
e -Wno-deprecated.

这是怎么回事? 我是新手,不是很懂.
谢了.

论坛徽章:
0
2 [报告]
发表于 2003-03-31 18:21 |只看该作者

c++ 编译问题.

#include <iostream.h>;
using namespace std;

论坛徽章:
0
3 [报告]
发表于 2003-04-01 23:20 |只看该作者

c++ 编译问题.

能解释一下吗?

照上面的还是不行.

论坛徽章:
0
4 [报告]
发表于 2003-04-02 08:32 |只看该作者

c++ 编译问题.


  1. #include <iostream.h>;
  2. using namespace std;
  3. main(){
  4. cout<<"hello, good guy."<<endl;
  5. return 0;
  6. }
复制代码


这个问题在论坛中已有多次回答
你自己找找看

论坛徽章:
0
5 [报告]
发表于 2003-04-02 08:35 |只看该作者

c++ 编译问题.

#include <iostream>;
                ~~~~~~~~
using namespace std;

论坛徽章:
0
6 [报告]
发表于 2003-04-02 08:47 |只看该作者

c++ 编译问题.

在置顶的FAQ中已回答了
FAQ号1。7

论坛徽章:
0
7 [报告]
发表于 2003-04-02 12:44 |只看该作者

c++ 编译问题.

太感谢你们了.

我没有好好的检查我自己的编译后的 ./a.out

才又问了一下. 真是非常抱歉.  
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP