how to check for a "-" in a string in 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
; //