1
如何整數轉換爲十六進制的std :: wstring的在C++?如何整數轉換爲十六進制的wstring在C++
如何整數轉換爲十六進制的std :: wstring的在C++?如何整數轉換爲十六進制的wstring在C++
同一個窄字符串:
#include <iomanip>
#include <sstream>
//...
std::wostringstream oss; // note the 'w'
oss << std::hex << n;
return oss.str(); // type is std::wstring