Appunto, come sospettavo, esiste già una funzione. Infatti basta la funzione
Per realizzare quello che ho detto. Per esempio scrivere 'A' in hex basta fare:codice:itoa(int val, char *buffer, int radix);
codice:char *buffer = new char[2]; itoa((int)'A', buffer, 16); printf("%s", buffer);

Rispondi quotando
