Output manipulation
Output manipulation gives us control over output thereby allowing us to display information in more readable and aesthetically pleasing ways.
In this video (6:19) we go over how you can align text, create table columns, control the display of floating-point numbers including scientific notation, and control the display of booleans.
<iostream> |
<iomanip> |
---|---|
std::left |
std::setfill() |
std::right |
std::setw() |
std::fixed |
std::setprecision() |
std::scientific |
|
std::showpoint |
|
std::noshowpoint |
|
std::boolalpha |
|
std::noboolalpha |
Resources
Additional resources
Copyright © 2023–2025 Clayton Cafiero
No generative AI was used in producing this material. This was written the old-fashioned way.