0

Is there a simple way to convert a string to hexadecimal?

I've tried using "cout << hex << variable;" but all I seem to get is the value of the variable, instead of it's hexadecimal form. is it the sololearn compiler? I'm only using that one, so will I need to use another?

10th Sep 2017, 10:33 AM
X-1
X-1 - avatar
1 Odpowiedź
10th Sep 2017, 10:43 AM
Testing003