Answers for "check for string in string in cpp"

C++
4

check if character in string c++

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

Browse Popular Code Answers by Language