What the mean of iostream in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What the mean of iostream in c++

12th May 2018, 2:00 PM
vineet
2 Answers
+ 4
vineet The iostream is the standard C++ library for streaming input and output. Just similar to or inherited from stdio in C which defines standard input output library functions in ANSI/standard C. iostream header<iostream.h> file is declared along with the preprocessor directive of #include which is responsible for telling the compiler to include the standard C++ library of iostream before compiling the program.So it is processed by the preprocessor to include the iostream.h header file before compiler compiles the program and required by the compiler to compile the program for cout,cin. iostream defines all the standard library streams like cin,cout,clog,cerr. iostream is used so as to facilitate the input and output services like that of cin and cout and others. Preprocessor directive #include tells the compiler to compile the program including the <iostream.h> header file.So as to read cin and cout without any compilation errors.And so during runtime you are able to give/recieve input/output through/from the I/O console(like keyboard and monitor) which streams the i/o through buffering. So we need to write, #include<iostream.h> Hope clarified ☺️.
13th May 2018, 9:16 PM
D-Key
D-Key - avatar
0
iostream is basically a header file which contain all the declaration of functions.
12th May 2018, 2:44 PM
Alpha Rays
Alpha Rays - avatar