This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cplbexam/ios/flags.cpp

14 lines
321 B
C++

#include <iostream.h>
void main( void ) {
cout.setf( ios::hex );
cout.setf( ios::unitbuf );
cout << "The current value of ios::fmtflags in hex. is "
<< cout.flags() << endl;
cout.flags( 0x3142 );
cout << "The current value of ios::fmtflags in hex. is "
<< cout.flags() << endl;
}