What is a better way to convert C++ decimal int to hexadecimal char?
UPDATE:
For example, 17 I hope that the result after the change is char(0x00) char(0x11)
but not "11" char("1") char ("1")
習慣沉默2017-05-16 13:28:20
A friend who is engaged in embedded technology recommended a method
x & 0xFF; x >> 8