Answers for "how to check if string has letter c++"

C++
7

how to check string contains char in c++

std::string s = "Hello";
if (s.find('e') != std::string::npos)
    cout << "Found";
else
    cout << "Not Found";
Posted by: Guest on August-23-2020
1

string c++ if letter or number

char test='a';
cout<<isalpha(test);
Posted by: Guest on August-20-2020

Code answers related to "how to check if string has letter c++"

Browse Popular Code Answers by Language