how to check if a character in in a string c++ 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
; //