<<< | Index | >>> |
Fill character can be changed by setfill manipulator:
#include <iostream> #include <iomanip> using namespace std; int main () { cout << setfill( '?' ) << setw( 40 ) << "Hello"; return 0; } /* Output: ???????????????????????????????????Hello */
<<< | Index | >>> |