2011-11-01 72 views

回答

7

同一個窄字符串:

#include <iomanip> 
#include <sstream> 

//... 

std::wostringstream oss; // note the 'w' 
oss << std::hex << n; 

return oss.str();   // type is std::wstring 
相關問題