Slide 1 / 16
Streams — a quick recap
A stream is like a pipe: data flows through it between your program and a device (keyboard, screen, file, network).
C++ ships with:
cin— input from keyboardcout— output to screencerr— error messages to screen- File streams from
<fstream>— read from / write to disk files