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?

use can use string.erase with isspace

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.