/* CS201 Programming Project Spring 2002 Programmer: Dick Demonstrating: ifs Started: Tue Apr 23 10:31:36 PDT 2002 Last Change: When you stopped work on it last. Status: */ #include #include using namespace std; int main() { /*Algorithm Ask the user if they love me. If they say Yes, tell them I love them otherwise tell them I hate them! stop */ cout << "Do you love me?\n"; string response; cin >> response; if( response.substr(0,1) == "Y" or response.substr(0,1)=="y") cout <<"I love you too!\n"; else cout << "I hate you!\n"; return 0; // terminate program with zero errors.*/ }