check if string contains string cpp code example
Example: check if character in string c++
std::string s = "hell[o";
if (s.find('[') != std::string::npos)
; // found
else
; //
std::string s = "hell[o";
if (s.find('[') != std::string::npos)
; // found
else
; //