Answers for "check wheter a character is present in the string or not in c++"

C++
4

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 "check wheter a character is present in the string or not in c++"

Browse Popular Code Answers by Language