] > iostream: Standard Input/Output

2.4.2 iostream: Standard Input/Output

Typically provides the terminal media for user-program communication.



coutOutput stream object


cin Input stream object


<< Output operation


>> Input operation


endl Insert newline and flush manipulator


<..io.cpp..>
 #include <iostream>
 using namespace std;
 
 int main()
 {
   string name;
   cout << "Please type in your name, followed by the RETURN key\n";
   cin >> name;
   cout << "Thanks, " << name << endl;
   return 0;
 }
-_-_-

A stream is a flow of data.

[iostream] [iostream manipulators]