c++ - How do you concatenate two wchar_t* together? -
I have a base wchar_t *
and I'm finally looking to add another Am How do I do this? I can not use disliked functions because I am treating warnings as errors.
why not std :: wstring
first place:
wchar_t * ws1 = foo (), * ws2 = bar (); Std :: wstring s (ws1); S + = std :: wstring (ws2); Std :: wcout & lt; & Lt; S & lt; & Lt; Std :: endl;
If necessary, std :: wstring :: c_str ()
gives you access to the result as const wchar_t *
is.
Comments
Post a Comment