c++ check char * and string code example
Example: check if char 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
; //