how to check if a string is substring of another string in c++ using find code example
Example: c++ check substring
if (s1.find(s2) != std::string::npos) {
std::cout << "found!" << '\n';
}
if (s1.find(s2) != std::string::npos) {
std::cout << "found!" << '\n';
}