// A sampling of output stream manipulators // Compare with formats.cc which uses functions // Notice the need to unset groups of bits(fields) before setting others:-( // http://www.csci.csusb.edu/dick/cs202/iomanip.html #include #include main() { //Suitable for a check protected monetary field const float dollars = 1234.45; cout << endl; cout << '$'; cout << setfill('*'); cout <