Answers for "c++ check if a char is in a string"

C++
3

check if char in string c++

std::string s = "hell[o";
if (s.find('[') != std::string::npos)
    ; // found
else
    ; //
Posted by: Guest on September-14-2020

Code answers related to "c++ check if a char is in a string"

Browse Popular Code Answers by Language