iostream and iostream.h

Jun 30, 2009 at 3:55pm
Whats the difference between
#include<iostream>
and
#include<iostream.h>
I have observed that when using #include<iostream.h> , using namespace std; is not required. What is namespace???
Thanks in advance.....
Last edited on Jun 30, 2009 at 3:59pm
Jun 30, 2009 at 4:16pm
<iostream> is the standard header

<iostream.h> is the old standard header, not longer supported by some compilers

Namespaces are used to avoid multiple symbol definitions when using several libraries http://www.cplusplus.com/doc/tutorial/namespaces/
Jun 30, 2009 at 4:23pm
Thanks Bazzy. I am asking this question because you caught my error somewhere, some hours ago. I am weak in C++. Thanks again.
Topic archived. No new replies allowed.