注册 登录
编程论坛 C++教室

.h,和using namespace std

布头儿 发布于 2007-06-22 10:16, 579 次点击

这两个有什么区别啊,各有什么优点啊,
我在我的书上没有找到,请帮忙解释一下

3 回复
#2
HJin2007-06-22 10:19
#include <iostream.h>

does not work for modern compliers, e.g., VS 2005. It may work for VS6, or older compilers.

The standard way is

#include <iostream>
using namespace std;
#3
布头儿2007-06-22 12:27

HJin Think you very much

#4
yuyunliuhen2007-06-22 12:58
only two different standard;
iostream.h is the old one;

#include <iostream>
using namespace std;
is the new one;
1