C++ TutorialLesson 5Free preview
C++ Output
This lesson is part of C++ · All levels
Summary
This lesson discusses how to display output to the screen using the object cout from the iostream header. You learn to compile multiple output parts into one command line and use an endl manipulator to move the row. The understanding of output becomes the basis for verifying the results of subsequent programs.
Key points
- Cout (character output) is used to print data to the console.
- Cout needs a header. (#include)
- The << operator can be connected to print multiple values at once.
- Endl not only moves the row but also flushes the buffer output.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.