Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Streams are like flexible flow-through containers.
#include <iostream> |
Screen output:
bool b: 1 |
Examples of global streams are:
Types of streams are:
Things one can do on a stream:
A stream format flag is something that can be on or off. Stream format flags are:
Turning a flag on and off is shown in the code below.
#include <iostream> |
A stream flag field is a group of options of which only one can be in effect, similar to a radiogroup control. To set a certain option, one needs to clear the flag group field, then set the desired option.
Stream format flags are:
#include <iostream> |
Stream manipulators are like stream formatting flags and formatting fields, except that manipulators are the streamable version of flags and fields.
Stream manipulators are:
#include <iostream> |
Some code snippets one can use when working witj stream:
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.