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