[Solved] checking `aStr == null` in C++


if (a == NULL) can’t work since you are comparing a std::string with an Integer which is not possible. if you want to create an empty string and test for emptiness just do:

string a;
if (a.empty())
{ /* do something */ }

2

solved checking `aStr == null` in C++