+ 7
What is main of iostream, cin,cout, and in C++?
Define elaborate
3 Answers
+ 6
iostream = input-output stream
cin = console input
cout = console output
+ 1
cin,cout represent a concept called streams
c++ view files as a stream of bytes rather then solid containers
cin is istream(stdin)
cout is ostream(stdout)
0
iostream is a header file which can be found in the standard c++ input/output library file. It comes packeged with the compiler and contain mechanisms to get the information from user and print to a screen, a file or any other media.
cout represent the standard output stream in c++. It prints the data after "<<" (insertion operator) into the screen.
cin is c++ stream object by which program take input from user after ">>" (extraction operator).