Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ check if string is empty

#include <iostream>

int main()
{
  	std::string str;
  
  	if(str.empty()) std::cout << "Empty";
  
	return 0; 
}
 
PREVIOUS NEXT
Tagged: #check #string #empty
ADD COMMENT
Topic
Name
5+4 =