James
2012-01-02 11:57:56 UTC
#include
#include "stdlib.h"
using namespace std;
int main()
{ string name, animal;
int age, n;
cout << "I will now quiz you..." << endl;
cout << endl;
cout << "What is your name?";
cin >> name;
name = ? (I want to refer to the cin >> input);
cout << "How old are you?";
cin >> n;
age = n;
cout << "Lastly, what is your favorite animal?";
cin >> animal;
animal = ? ( I want to refer to the cin >> input);
cout << "Your name is " << name << ", you are " << age << " years old, and your favorite animal is a " << animal << "." << endl;
system ("pause");
return 0;
}