<<< | Index | >>> |
requires header <iomanip>
manipulator std::setw( n ) determines minimum output width n.
shorter than the field width output is padded with fill characters.
For example,
#include <iostream> #include <iomanip> using namespace std; int main () { cout << setw( 40 ) << "Hello"; return 0; } /* Output: Hello */
<<< | Index | >>> |