BaseCodeByte
Back to C++ outline
C++C++BeginnerLive C++ notebook10 min

Input And Output

Input And Output in practical C++ programs, with editable notebook code and a focused exercise.

Lesson notes

This lesson turns input and output into a small example you can edit, copy and run locally.

compiled programsmemorystandard library

Editable notebook cell

Starter code

1
2
3
4
5
6
7
8

Output

Live C++ notebook
Run the code to see output here.

Try this

Change the sample data, predict the output and note what concept changed.

Hint: Make the smallest possible edit first.