Input and Output Statements in C++

Output Statements

The syntax for an output statement in C++ isĀ  cout << “Text” << data << endl;

Output statement sends text and data to the screen or display.

Input Statements

The syntax for an input statement in C++ is cin >> data1 >> data2;

Input statements reads in data from the keyboard.

Software used in programming C++ programs

Microsoft Visual Studio is used programming C++ programs in Microsoft Windows. Click here to download Microsoft Visual Studio for Windows Desktop.

Microsoft Visual Studio 2013 tutorial


Compiling a C++ program in Linux Mint