LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: spate

关于#include <iostream.h>请教

[复制链接]
发表于 2004-3-11 19:21:20 | 显示全部楼层
printf("ok%d\n", a);
在linux下一定要加上"\n",不然一般看不到输出结果。
 楼主| 发表于 2004-3-11 21:58:45 | 显示全部楼层
谢谢大家,我是一个初学者,大家的知道对我很有用处,我的program已经有了结果了。谢谢
 楼主| 发表于 2004-3-11 22:13:08 | 显示全部楼层
Congratulation myself! Thank you very much, my first program under linux has its output "ok9"!
Thank you all of the above, dancingpig, jsjxiang, fingster, microyzy, devel, kj501. I think we can share the result, and I will work hard.
发表于 2004-3-12 08:55:58 | 显示全部楼层
标准 C++ 应该是用 #include <iostream>,如果用 #include <cstdio.h> 也应该可以,不过那就是用 C 的库函数了。如果要用 C++ 的话,也应该用 cout、cin 来代替 C 中的 printf、scanf
 楼主| 发表于 2004-3-14 12:32:28 | 显示全部楼层
好象没有找到过iostream这个文件啊
 楼主| 发表于 2004-3-14 12:33:28 | 显示全部楼层
/usr/include/g++-3/
我好象没有找到啊
发表于 2004-3-14 13:22:51 | 显示全部楼层
/usr/include/c++
 楼主| 发表于 2004-3-14 13:58:45 | 显示全部楼层
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表