#include #include using namespace std; int main() { string word; int pos; cerr << "Please enter in a word: "; getline(cin,word); pos=word.find("hi "); if(word=="hi") cout << "hi to you too" << endl; else if(pos!=string::npos) cout << "hi to you too." << endl; else cout << "I don't understand" << endl; return 0; }