What is the output of program, cout.setfill - C++ File Stream

C++ examples for File Stream:cout

Description

What is the output of program, cout.setfill

Demo Code

#include <iostream>
#include <iomanip>

using namespace std;
int main(int argc, const char *argv[]) {
    cout << setw( 10 ) << setfill( '$' ) << 10000; 

    return 0;/*from w  w  w.  j a  v a2  s . c om*/
}

Result


Related Tutorials