cpp str.find 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';
}