+ 2

What happen when we not use iostream.h in c++?

15th Feb 2019, 1:50 PM
Puneet Bhardwaj
Puneet Bhardwaj - avatar
3 odpowiedzi
+ 7
Let me correct you.. Cin and cout are objects of iostream class.
4th Mar 2019, 5:26 AM
Gaurav bhojwani
Gaurav bhojwani - avatar
+ 14
In C++, iostream.h is header file which contains input-output functions like 'cin' and 'cout'. If you exclude that file then you will not be able to use 'cin' and 'cout' functions thus no programming can be done as writing code requires atleast something to output (and input in some cases if you require input from the user).
15th Feb 2019, 1:58 PM
Nova
Nova - avatar
+ 2
Iostream is a header which includes very important functions for user input. Most common ones are cin and cout, but there are others such as cerr,clog, wcout (for wide Unicode characthers I believe). You really don't have to include it, you know! You can easily use cstdio which derives from C and replace input commands cin and cout with scanf and printf respectively.
15th Feb 2019, 3:30 PM
Demon
Demon - avatar