C++ 将字符串(或 char*)转换为 wstring(或 wchar_t*) - C++ Convert string (or char*) to wstring (or wchar_t*)

问题:

string s = "おはよう";
wstring ws = FUNCTION(s, ws);

How would i assign the contents of s to ws?我如何将 s 的内容分配给 ws?

Searched google and used some techniques but they can't assign the exact content.搜索谷歌并使用了一些技术,但他们无法分配确切的内容。 The content is distorted.内容被扭曲。


解决方案:

参考一: https://en.stackoom.com/question/AnZS
参考二: https://stackoom.com/question/AnZS
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章