Will a code run successfully if I add "<iostream>" only on computer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Will a code run successfully if I add "<iostream>" only on computer?

What will happen if I use "<iostream.h>

21st Feb 2017, 9:19 AM
Nischal
3 Answers
+ 11
I believe <iostream.h> is obsolete on desktop compilers as well. It was deprecated by the compilers which previously provided it in pre-standard C++.
21st Feb 2017, 9:38 AM
Hatsy Rei
Hatsy Rei - avatar
+ 10
<iostream> is the C++ standard, and is what evolved from <iostream.h>. It will work on all C++ compilers up to date.
21st Feb 2017, 9:40 AM
Hatsy Rei
Hatsy Rei - avatar
0
it is on the base of the software that you are using If you are using geany there no need of adding .H to header file.But if you are using C++turbo .H is must
22nd Feb 2017, 7:30 AM
Hari Manu
Hari Manu - avatar