Start here · Essential guide
How to Use cout in C++
Learn how to use cout in C++ to print text, numbers and variables, add new lines, and format output, with short complete examples you can compile and run.
Syntax and Functions
How to print output with std::cout and the << operator.
Start here · Essential guide
Learn how to use cout in C++ to print text, numbers and variables, add new lines, and format output, with short complete examples you can compile and run.
Neither C nor C++ is better for everyone. Learn how the two languages relate, how output differs between them, and how to choose for your goals.
cout is the standard output stream in C++. Learn what it is, where it lives in the std namespace, how it differs from cerr, and what buffering means.
Break down std::cout << in C++ piece by piece: the std namespace, the cout object, the insertion operator, and why several values can be chained in one line.
Related topics