June 2017
Intermediate to advanced
532 pages
12h 59m
English
All these, sometimes pretty long, << foo << bar stream expressions are really confusing if it is not clear to the reader what each of them does. Therefore, let's have a look at a table of existing formatting modifiers. They are all to be placed in a input_stream >> modifier or output_stream << modifier expression and then affect the following input or output:
| Symbol | Meaning |
| setprecision(int n) | Sets the precision parameter when printing or parsing floating-point values. |
| showpoint / noshowpoint |
Enables or disables the printing of the decimal point of floating-point numbers even if they do not have any decimal places. |
| fixed / scientific / hexfloat / defaultfloat | Numbers can be printed in a fixed style (which is the ... |
Read now
Unlock full access