#include <iostream> using namespace std; void main() { int n = 255; char buffer[20]; _itoa(n, buffer, 16); cout << buffer << endl; }