#include #include using namespace std; int main() { string target = "programming is a creative process"; string s; cout << "target string: " << target << endl; cout << "search for what substring: "; cin >> s; unsigned int index = target.find(s); if (index != string::npos) { cout << "found at " << index << endl; } else { cout << "not found" << endl; } return 0; }