c++ check if string is null or empty code example
Example: c++ check if string is empty
#include <iostream>
int main()
{
std::string str;
if(str.empty()) std::cout << "Empty";
return 0;
}
#include <iostream>
int main()
{
std::string str;
if(str.empty()) std::cout << "Empty";
return 0;
}