| <<< Fill Character | Index | Alignment of Numeric Fields >>> |
left appends fill characters at the end.
right inserts fill characters at the beginning.
#include <iostream>
#include <iomanip>
using namespace std;
int main () {
cout << left << setfill( '?' ) << setw( 40 ) << "Hello";
return 0;
}
/*
Output:
Hello???????????????????????????????????
*/
| <<< Fill Character | Index | Alignment of Numeric Fields >>> |