Answers for "check if string is not empty c++"

C++
2

c++ check if string is empty

#include <iostream>

int main()
{
  	std::string str;
  
  	if(str.empty()) std::cout << "Empty";
  
	return 0; 
}
Posted by: Guest on February-13-2021

Code answers related to "check if string is not empty c++"

Browse Popular Code Answers by Language