"daniel aviad galron" <ga****@cis.ohio-state.edu> wrote in message
news:3F**************@cis.ohio-state.edu...
Greetings. I need to output a hexadecimal number using cout. I've done
this as shown below:
cout << hex << stuff;
But it outputs the letters in lowercase. Is it possible to output
a,b,c,d,e, and f in upper case instead of lower case?
Yes. Your needs have been anticipated and provided
via another handy-dandy stream manipulator:
#include <iomanip>
#include <iostream>
int main()
{
std::cout << std::hex << std::uppercase << 0x3d << '\n';
return 0;
}
-Mike