std是一个命名空间,C++把很多名字放在std命名空间里面的,需要的时候调用std才能使用那些名字。
用# include<iostream.h>作头文件,就不用using namespace std;
用# include<iostream>作头文件,就必须用using namespace std;
例如:
#include <iostream.h>
#include<string.h>
相当于
#include <iostream>
#include<string>
using namespace std;