// cin with strings #include #include using namespace std; int main () { int n; string mystr; cout << "What's your name? "; getline (cin, mystr); cout << "Hello " << mystr << ".\n"; cout << "What is your favorite team? "; getline (cin, mystr); cout << "I like " << mystr << " too!\n"; cout << "enter the starting number?"; cin >> n; getchar (); while (n>0) { cout << --n ; } cout << "FIRE!!!"; getchar (); // youll notice the getcar (); line twice in a short time, it is because two different functions were called in the same (int main () ) return 0; }