hex - What is a better way to convert C++ decimal int to hexadecimal char?
怪我咯
怪我咯 2017-05-16 13:26:20
0
2
744

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")

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
習慣沉默

A friend who is engaged in embedded technology recommended a method

x & 0xFF; x >> 8

滿天的星座

int a=11123456;
char str[20]={0};
sprintf(str, "%x", a);

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template