To input and output information to the console in C++, you will use the standard input-output stream (iostream) library. Output To output information, you will use the code std::cout. This code is referencing the standard output stream. In most cases, the output device is the display screen. Here is an example with the classic Hello World! program.