Answers for "how to test if char in = to another in c++"

C++
2

check if char in string c++

std::string s = "hell[o";
if (s.find('[') != std::string::npos)
    ; // found
else
    ; //
Posted by: Guest on September-14-2020
0

how to test if char in = to another in c++

int main (){ 
  string test = "SEPERATE";
  string check(test);
  (if stringcheck==true) cout << "correct spelling!";
}
Posted by: Guest on October-01-2021

Browse Popular Code Answers by Language