#include #include #include char fName[64]; char lName[64]; int choice; int rain; int knowhow; int quit() { return(0); } void ask() { cout << "What would you like to do today? \n [1] Ride a bike \n [2] Play Games \n [3] Quit this crappy excuse for a C program... \n Enter a choice: "; cin >> choice; if (choice == 1) { cout << "But, " << fName << ", Is it raining? \n \"1\" for Yes, \"2\" for no." << endl; cin >> rain; if (rain == 1) { cout << "You can't go biking... it's raining! \n *****************" << endl; ask(); } } if (choice == 2) { cout << fName << ", you don't even know how to play games do you? \n [1] ...no \n Enter your choice." << endl; cin >> knowhow; if (knowhow == 1) { cout << "I hadn't thought so. Come back when you know how to play a game. \n *****************" << endl; ask(); } } if (choice == 3) { cout << "Bye" << fName << endl; quit(); } } int main() { cout << "What is your first name? "; cin >> fName; cout << "What is your last name? "; cin >> lName; cout << "Welcome, " << fName << " " << lName << endl; ask(); }