例如,输入n=10,要求输出 0x0000000A; C++: sprintf( buffer, "0x%08X", n); C#: string s = string.Format( "0x{0:X08}", n); 相关文章: 2022-01-22 2022-12-23 2022-12-23 2021-11-25 2021-11-16 2022-12-23 2022-12-23 2022-12-23