Does anyone know how and if is possible to convert an int to a hexadecimal
Printable View
Does anyone know how and if is possible to convert an int to a hexadecimal
Yes, it is.
you can print it out by using %x instead of %d
Another way is use the function itoa() in <stdlib.h>.
Or if you just want to print an int in hexadecimal:
int i = 255;
cout << i << " hex:" << hex << i << endl;