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

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

excel - Populate list via a bi-Condition -