C++ Basics — what is cout and cin?
cout << "Output sentence"; // prints Output sentence on screen
cout << 120; // prints number 120 on screen
cout << x; // prints the value of x on screen
cout << "This " << " is a " << "single C++ statement" << endl;
- It means standard output
- On most program environments, the standard output by default is the screen
<<operator inserts the data that follows it into the stream that precedes it.
- Multiple insertion operations…