how to get input from the console in c++

C++
int age;
cin >> age;
Source

Also in C++: