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.

31st Jul 2016, 1:44 PM
kenn lingcay
kenn lingcay - avatar
6 ответов
+ 6
for using <iostream> u require a name space whereas <iostream.h> not require a name space due to extension .h
31st Jul 2016, 2:26 PM
Aman Ankur
Aman Ankur - avatar
+ 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
31st Jul 2016, 3:00 PM
Aman Ankur
Aman Ankur - avatar
+ 2
.h is an extension of header file, if you did not write that then header file can not be attached
31st Jul 2016, 2:51 PM
Zeeshan Saeed
Zeeshan Saeed - avatar
+ 2
iostream.h can't run on every compiler whrereas iostream is run in any compiler
18th Aug 2016, 10:52 AM
Aman Ankur
Aman Ankur - avatar
+ 1
@aman can you explain in detail plz..
31st Jul 2016, 2:48 PM
Nikhil Yadav
Nikhil Yadav - avatar
0
there is a big differenxe
31st Jul 2016, 2:17 PM
Zeeshan Saeed
Zeeshan Saeed - avatar