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

C++
1

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 "c++ check if string is empty"

Browse Popular Code Answers by Language