cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
iostream and iostream.h
iostream and iostream.h
Jun 30, 2009 at 3:55pm UTC
AR Khan
(54)
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 UTC
Jun 30, 2009 at 4:16pm UTC
Bazzy
(6281)
<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 UTC
AR Khan
(54)
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.