1 2 3 4 5 6 7 8 9
|
// modify uppercase flag
#include <iostream> // std::cout, std::showbase, std::hex
// std::uppercase, std::nouppercase
int main () {
std::cout << std::showbase << std::hex;
std::cout << std::uppercase << 77 << '\n';
std::cout << std::nouppercase << 77 << '\n';
return 0;
}
|