
| 
 | 
|  | 作者: glypk [glypk]  论坛用户 | 登录 | 
| #include <iostream> int main() { std::cout << "hello world!\n"; return 0; } | 
| 地主 发表时间: 06-12-20 12:18 | 
|  | 回复: Ocean [friendship]  论坛用户 | 登录 | 
| 没有错误吧 | 
| B1层 发表时间: 06-12-20 22:38 | 
|  | 回复: jhkdiy [jhkdiy]  版主 | 登录 | 
| 是不是你的编译环境错了? | 
| B2层 发表时间: 06-12-21 00:00 | 
|  | 回复: 286 [unique]  版主 | 登录 | 
| #include <iostream>  //改成#include <iostream.h> int main() { std::cout << "hello world!\n"; return 0; } | 
| B3层 发表时间: 06-12-21 11:52 | 
|  | 回复: kert_t8 [kert_t8]  论坛用户 | 登录 | 
| 据说加不加.h都应该是一样的 楼主还是把错误信息贴出来吧 你不会是用gcc编译的吧?会出链接错误的 还有会不会是那个命名空间std::的问题,我不用c++,那个东西老也搞不懂 | 
| B4层 发表时间: 06-12-22 14:15 | 
|  | 回复: frostmoon [frostmoon]  论坛用户 | 登录 | 
| 这个程序没问题的,可能有些老式编译器要求<iostream.h>(现在比较少见了),cout是包含在名称空间std里的~ | 
| B5层 发表时间: 07-03-02 17:45 | 
|  | 回复: 44 [cspaw]  论坛用户 | 登录 | 
| 有人编译通过了没?   | 
| B6层 发表时间: 07-03-12 20:53 | 
|  | 回复: frostmoon [frostmoon]  论坛用户 | 登录 | 
| me | 
| B7层 发表时间: 07-03-14 18:00 | 
| 
 | 
20CN网络安全小组版权所有
Copyright ©    2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon   

粤ICP备05087286号