const char* c = "Word"; string str = "WhereIsMyWordThatINeed"; cout << "the word is at index " << str.find(c); //this will print "the word is at index 9"