c++ - How can you remove the last character from a wchar_t*? -
How can I remove the last character of wchar_t * and resize accordingly? For example, to "test" and to bring it down in "Tess"
How about Str [wcslen (str) - 1] = '\ 0'
Make sure the string is at least 1 character long ago!
Comments
Post a Comment