Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

check if char in string c++

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