Hi Experts;
I am trying to learn C++ and make use of its standard library instead of using the standard C library which i know all to well.
Can anyone tell me the best way of working with std::wstring and wchar_t arrays.
For example:
Code:
std::vector<std::wstring> vstring;
std::wstring wstring;
wchar_t msg[] = L"Hello";
/* std::wstring Not compatible with push_back */
wstring.push_back(msg);
/* std::wstring Assigned works! */
wstring = msg;
/* std::vector is compatible with push back */
vstring.push_back(msg);
/* std::vector assigned not compatible */
vstring = msg;
Looking forward to your reply's!