C++ provides facilities for accepting input from a user. We can think of the
standard input as our keyboard. A simple example of accepting one integer number and printing it out is
int main()
{
std::cout << "Please enter a number and press enter: ";
int x = 0;
std::cin >> x;
std::cout << "You entered: " << x;
}
Possible Output:Please enter a number and press enter: 123
You entered: 123
The std::cin is the standard input stream, and it uses the stream extraction >> operator to extract what ...