why we use <iostream. h>? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

why we use <iostream. h>?

27th Apr 2017, 2:24 AM
Pooja Mahana
Pooja Mahana - avatar
4 Answers
+ 3
<iostream> and <iostream.h> contains methods such as cin, cout, cerr and the others. <iostream.h> was more commonly used by C++98 and earlier, however, after C++03, it completely disappeared. So we no longer use it or need it. <iostream> is more than enough
27th Apr 2017, 8:35 AM
Krishneel Nair
Krishneel Nair - avatar
+ 10
<iostream.h> is obsolete. Modern compilers recognise <iostream>
27th Apr 2017, 2:44 AM
Hatsy Rei
Hatsy Rei - avatar
+ 6
we include it to be able to use things like cout, cin etc. They are not built in by default.
27th Apr 2017, 2:25 AM
jay
jay - avatar
+ 6
thnks jay
27th Apr 2017, 2:26 AM
Pooja Mahana
Pooja Mahana - avatar