cout: uppercase, show base, hex
#include <iostream>
using namespace std;
int main()
{
cout.unsetf(ios::dec);
cout.setf(ios::uppercase | ios::showbase | ios::hex);
cout << 88 << '\n';
cout.unsetf(ios::uppercase);
cout << 88 << '\n';
return 0;
}
Related examples in the same category