C
conf
How to know if a std::string has empty content or not? Thanks!
How to know if a std::string has empty content or not? Thanks!
conf said:How to know if a std::string has empty content or not? Thanks!
Sharad Kala said:std::string has an empty member function to check for empti-ness.
if (s.empty())
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.