0
I'm confused because I just starting to learn C++. What is the difference between <iostream> and <iostream.h> ? I can't run the second one.
6 Réponses
+ 6
for using <iostream> u require a name space
whereas <iostream.h> not require a name space due to extension .h
+ 3
in c++ namespace is required for header file
if we don't use header file with .h that's why we use using namspace std but it's not compulsory that every time you have to use namespace you also declare with extension .h
like if we use getch than we have to begin programme with void main
and including header file <conio.h>
or other method is <conio>
using namespace std
+ 2
.h is an extension of header file, if you did not write that then header file can not be attached
+ 2
iostream.h can't run on every compiler
whrereas iostream is run in any compiler
+ 1
@aman can you explain in detail plz..
0
there is a big differenxe