string to wstring
-
[C++] std::string convert std::wstring프로그래밍/C++ 2019. 5. 14. 00:08
std::string -> std::wstring std::string str = "I want convert this string"; std::wstring wstr; str.assign(wstr.begin(), wstr.end()); std::wstring -> std::string std::wstring wstr = "I want convert this string"; std::string str; wstr.assign(str.begin(), str.end());