/******************************************************************************/ /* */ /* FILE: september.cpp */ /* */ /* How long does it take to get used to the C++ style of output formatting ? */ /* ========================================================================= */ /* */ /* Compiled and tested with Visual C++ V6.0 */ /* */ /* V1.00 19-SEP-2001 P. Tellenbach http://www.heimetli.ch/ */ /* */ /******************************************************************************/ #include <iostream> #include <iomanip> using namespace std ; int main() { return ( operator<<( operator<<( cout << resetiosflags( ios::basefield | ios::adjustfield ) << setiosflags( ios::hex | ios::left ) << setfill( 'l' ) <<'H' << setw( 3 ) << 016 << right << setfill( 'o' ) << setw( 2 ) << static_cast<char>( 'a' - 'A' ) << setw( 2 ) << left << 'w', "rl" ) << 13, " !" ) << endl ) . bad() ; }
Update 21. September 2021
This program compiles and runs without any changes.