Answers for "what is string.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

Browse Popular Code Answers by Language