14 lines
321 B
C++
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;
|
|
}
|
|
|