且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将int转换为十六进制值

更新时间:2023-02-04 08:21:07

变量都在内部存储为二进制,因此如果要查看的值十六进制,纯粹是人类可读的表示形式.

例如:
Variables are all internally stored as binary, so if you want to view a value as hex, its purely a human readable representation.

For example:
int a = 22;
CString hex_a;
hex_a.Format("%X", a); //<-- this will contain hex 16, but only as text