如何在C++中将整数转换为十六进制std::wstring?
最佳答案
与窄字符串相同:
#include <iomanip>
#include <sstream>
//...
std::wostringstream oss; // note the 'w'
oss << std::hex << n;
return oss.str(); // type is std::wstring
关于c++ - 如何在 C++ 中将整数转换为十六进制 wstring,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7970075/