When I started writing, I did it primarily for the purpose of documenting for myself. When it comes to programming, I[he]#039[/he]m incredibly forgetful, so I began to write down useful code snippets, special characteristics, and common mistakes in the programming languages I use. This article perfectly fits the original idea as it covers common use cases of formatting when printing to console from C++.
Source: LXer – Tips for formatting when printing to console from C++