Check out example codes for "how to check string contains char in c++". It will help you in understanding the concepts better.

Code Example 1

std::string s = "Hello";
if (s.find('e') != std::string::npos)
    cout << "Found";
else
    cout << "Not Found";

Learn ReactJs, React Native from akashmittal.com