0

So I'm working with these strings and I'm stumped at this one part. Here's the instructions:

"After removing leading and trailing blank characters (<SPACE> or <TAB>), the string must not be empty."

.empty() will obviously be used, but how do I check for the " " or "\t" characters and the beginning and end of the string and how would I remove them?

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by firstPerson
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.