#include <iostream>
#include <string>
#include <algorithm>
usingnamespace std;
int main ()
{
string myString;
cout<<"Enter your text: \n";
getline(cin, myString);
string stringFinder;
cout<<"Enter the word that you want to find: ";
getline(cin, stringFinder);
string::size_type tip1 = myString.find(stringFinder, 0); //searching seek and destry :D
if(tip1 != string::npos) {
cout<<"The word "<<stringFinder<<" is found at position "<<tip1<<"."<<endl;
}
else {
cout<<"Could not find the word "<<stringFinder<<"."<<endl;
}
cin.get(); cin.get();
return 0;
}