12345
int show = 1; int hex = 0x2; // something like that !
123
#include <iomanip> // ... std::cout << std::hex << hex;