Console Input and Output
Printing Output with std::cout
Learn how to display text and numbers on the screen using C++'s standard output stream, std::cout.
Newlines, Tabs, and Escape Sequences
Learn how to use escape sequences in C++ to format console output with newlines, tabs, and special characters like quotes and backslashes.
Reading Input with std::cin
Learn how to make your C++ programs interactive by reading user keyboard input using std::cin and the extraction operator.
Reading Full Lines with std::getline
The extraction operator >> reads a single word, then it stops. Spaces are delimiters, so anything else on the current line is left in the input. When a program…
Common Console Input Problems
Learn how to handle invalid user input, recover from input stream failures, and clear the input buffer in C++.
Formatting Console Output with <iomanip>
Learn how to format C++ console output into clean, aligned tables and control decimal precision using the <iomanip> library.