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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章