社区
Java SE
帖子详情
求教Eclipse如何解决运行C程序时,#include
错误
daydayupN
2011-10-04 08:38:56
Eclipse如何解决运行C程序时,#include <iostream.h>错误,改成#include <iostream> using namespace std;
也不行,怎么办啊?
...全文
405
3
打赏
收藏
求教Eclipse如何解决运行C程序时,#include <iostream.h>错误
Eclipse如何解决运行C程序时,#include 错误,改成#include using namespace std; 也不行,怎么办啊?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
火龙果被占用了
2011-10-05
打赏
举报
回复
你是 C 还是 C++ 啊?
C 的话应该是 #include <stdio.h>
你用的什么编译器啊?我用 MinGW GCC 好像没啥问题的
柯本
2011-10-04
打赏
举报
回复
可能是环境设置的问题
Eclipse开发C设置有点烦,还要看你用什么编译器.我以前设了半天终于成功,但运行时有时有结果(用printf)有时没有(用了iostream的cout)
网上资料很少(估计很少有人用)
最后只要放弃
_了凡_
2011-10-04
打赏
举报
回复
还没用Eclipse写过C程序过。
帮顶。
C++【“using namespace std”的意思、
#include
“iostream“与
#include
< iostream>区别、< iostream>与< iostream.h>区别】
【1、“using namespace std”的意思】 【2、
#include
"iostream" 与
#include
< iostream>区别】 【3、< iostream>与< iostream.
h>
区别】
C语言中的
#include
h>文件的作用
1、简单了解
#include
< stdlib.h > stdlib.h中,包含了C语言的一些常用库函数。 如动态内存相关的malloc, realloc,zalloc,calloc,free等。 随机数相关的rand,srand等。 系统相关的system, getenv,setenv等。 字符串转数值函数,atoi, atof,strtoul等。 如果在代码中,调用了这个头文件中的函数
#include
h> 为什么不能放在
#include
h> 后面
转载自:http://www.myexception.cn/vc-mfc/722651.html这样就没问题:
#include
h>
#include
H>
#include
> using namespace std;这样就报错:
#include
H>
#include
h>
#include
#include
和
#include
h>
#include
和
#include
h> 区别
C++中
#include
与
#include
h>的区别
C++中
#include
与
#include
h>的区别
Java SE
62,615
社区成员
307,307
社区内容
发帖
与我相关
我的任务
Java SE
Java 2 Standard Edition
复制链接
扫一扫
分享
社区描述
Java 2 Standard Edition
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章