介绍
C++实现十进制转十六进制文本
Windows IDE:Visual Studio 2022
Windows
引用库
- <string>
- <sstream>
实现代码
std::string HEXTenToSixteen(uintptr_t address) { std::stringstream temp; temp << std::hex << address; std::string result = temp.str(); return result; }
C++实现十进制转十六进制文本
Windows IDE:Visual Studio 2022
std::string HEXTenToSixteen(uintptr_t address) { std::stringstream temp; temp << std::hex << address; std::string result = temp.str(); return result; }