C++ std::cout cheat sheet

Keep console output formatting for C++ handy with this cheat sheet.

The C++ std::cout, from the iostream library, prints text to the console. In C++ applications, cout is the new neighbor of printf. While using printf is still valid, you may prefer opting for cout. This programming cheat sheet covers common use cases of formatting when printing to console from C++.