+ 2

Why in pc in c++ i have to write #include<iostream.h> while when we write #include<iostream> it shows error

7th Dec 2016, 12:29 PM
Ravi Kumar
Ravi Kumar - avatar
3 Answers
+ 4
Actually, it used before 2002. But after 2002 c++ community and bell lab change it and remove .h from header file. From there this is the standard of c++. When you write iostream it simply means you are calling a header file. Now all compiler shows this as a standard of c++. If you get a compiler which is before 2002, and not been updated since than. You can use it. But Why you want that, bell lab done this for user benifit. You can use turbo c++ but why
7th Dec 2016, 12:35 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 3
This is due to different complier versions. For example, if you update a .API package that resolves bug problem as well as giving new features, of course the package will not do 100% the same thing as before right?
7th Dec 2016, 12:39 PM
Wen Qin
Wen Qin - avatar
+ 1
it is becuase the compiler is perhaps new when it automatically adds .h in header files
7th Dec 2016, 12:34 PM
Sandeep Chatterjee