2012年3月29日 星期四

iostream and iostream.h

<iostream> is encapsulated in namespace std, but <iostream.h> doesn't.

If you use #include <iostream> , you have to using namespace std.
If you use #include <iostream.h> , you won't use any namespace.

Reserving the iostream.h to compatible with previous source code.


Reference:

沒有留言:

張貼留言