to check for a letter in a 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
; //