24小时热门版块排行榜    

CyRhmU.jpeg
查看: 360  |  回复: 2

xylecust

木虫 (小有名气)

[交流] 【求助】程序挂不上去已有2人参与

//#include "stdafx.h"
#include
#include
#include
#include
这是我的头文件‘
自己电脑上可以 但是挂鸡群就不行了
执行后

In file included from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/backward/iostream.h:31,
                 from 2d.cpp:7:
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/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 header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated.
2d.cpp:1347:2: warning: no newline at end of file
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

sudo

木虫 (正式写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
你贴出来这些只是warning

还有什么东西没贴出来吧?
2楼2011-03-30 08:25:26
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pwzhou

铁杆木虫 (正式写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
引用回帖:
Originally posted by xylecust at 2011-03-29 18:34:27:
//#include "stdafx.h"
#include <math.h>
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
这是我的头文件‘
自己电脑上可以 但是挂鸡群就不行了
执 ...

这写法太不标准了(估计也就在VC6下能顺利编译通过)。
标准的C++的写法是:

using namespace std;

#include
3楼2011-03-31 21:22:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 xylecust 的主题更新
普通表情 高级回复(可上传附件)
信息提示
请填处理意见