How to allow setw apply to all the following stdout?
setw
isn't sticky, so you have to say it every time:
cout << setfill('0') << setw(3) << 8 << " "
<< setw(3) << 9 << endl;
setw
isn't sticky, so you have to say it every time:
cout << setfill('0') << setw(3) << 8 << " "
<< setw(3) << 9 << endl;