Want to remove \n\t whitespace from my string c++

I have a requirement to remove "\n\t" from the input string?

For example,

"lorenda bianco"

is invalid input for me. (just \n)

"lorenda bianco"

is valid input for me. (\n\t).

I tried with isspace, but don't know how to make combination of different whitespaces.

Any help would be appreciated.


Read more here: https://stackoverflow.com/questions/64940222/want-to-remove-n-t-whitespace-from-my-string-c

Content Attribution

This content was originally published by user1228352 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: