Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

check if character in string c++

std::string s = "hell[o";
if (s.find('[') != std::string::npos)
    ; // found
else
    ; //
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #character #string
ADD COMMENT
Topic
Name
6+7 =