Output manipulation

Published

2023-08-05

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

Original author: Clayton Cafiero < [given name] DOT [surname] AT uvm DOT edu >

No generative AI was used in producing this material. This was written the old-fashioned way.

All materials copyright © 2020–2023, The University of Vermont. All rights reserved.