/* CS201 Programming Project Spring 2002 Programmer: Dick Botting rbotting@csusb.edu Project: Chapter 1, Project P1.1 Demonstrating: Simple input and output Description: Write a program that prints out a message "Hello, my name is Hal!". Then on a new line, it should print the message "What would you like me to do?". Then it is the users turn ti type in an input... Finally, the program should ignore the user input and print the message "I am sorry, I cannot do that." Started: Wed Mar 27 12:07:43 PST 2002 Last Change: Wed Mar 27 12:12:42 PST 2002 Status: Compiled with clean and ran with no input Compiled with clean and ran with input */ #include #include using namespace std; int main() { /*Algorithm 1. output a 2 messages 2. Input a string 3. Ouput last message 4. stop */ cout << "Hello, my name is Hal!" << endl; cout << "What would you like me to do?" << endl; string user_input;//from book getline(cin, user_input);//from book cout << "I am sorry, I cannot do that." << endl; return 0; // terminate program with zero errors. }