#include <print>
#include <string>
int main() {
std::string s = "hello world";
auto pos = s.find("world");
// find returns std::string::npos when there is no match
if (pos != std::string::npos) {
std::println("found at {}", pos);
}
}locate a substring or npos