how do i see if a character is in as tring in c++ code example
Example: c++ string contains
if (string1.find(string2) != std::string::npos) {
std::cout << "found!" << '\n';
}
if (string1.find(string2) != std::string::npos) {
std::cout << "found!" << '\n';
}