关于C++中的头文件和名称空间~解决思路

关于C++中的头文件和名称空间~~~~
我看到一些例程中,既包含了头文件   #include <iostream> ,又作了using   namespace   std;  
1、为什么要这样来做呢?不会重复引用吗?  
2、有人告诉我在包含头文件时加个.h,如#include <iostream.h> ,就可以不用using   namespace   std;了,请问是这样吗?为什么呢?

谢了

------解决方案--------------------
1、为什么要这样来做呢?不会重复引用吗?

#include <iostream>
using namespace std;
这是C++的方式,
用的是C++才有的名字空间,
它把例如cin这样的函数都放到了iostream这个文件的std名字空间中,
所以就要用using namespace std;来使cin变得可以见到,

2、有人告诉我在包含头文件时加个.h,如#include <iostream.h> ,就可以不用using namespace std;了,请问是这样吗?为什么呢?

#include <iostream.h> 这种是C方式,它里面没有名字空间,所以根本不用using namespace std

所以说,两种方式都是可以的,或者#include <iostream.h> ,或者#include <iostream>
using namespace std;连起来用
------解决方案--------------------
使用#include <iostream> 但不写 "using namespace std ",那么你在程序中
使用cout,cin时就要这带上它们的名字空间即std::cin,std::cout,如果
你写上了 "using namespace std "则在程序中就可以直接用cin,cout;至于那个
<iostream.h> ,忘了它吧