SyntaxFix
Write A Post
Hire A Developer
Questions
I would prefere
if (!myStr.empty()) { //do something }
Also you don't have to write std::string a = "";. You can just write std::string a; - it will be empty by default
std::string a = "";
std::string a;