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++.
To download this resource, sign in or enter your email address and country below.