string name12;
string city12;
//Can use function getline to read the entire line. getline(cin, inputLine);
cout << "Enter a name...first and last if you want: ";
getline(cin, name12);
cout << "Same deal with city: ";
getline(cin, city12);
cout << endl;
cout << "So you said your name is: " << name12 << "And you live in " << city12;
cout << " city." << endl << endl;
For whatever the reason, the program is skipping over the first cin. It displays the cout message:
Enter a name...first and last if you want: Same deal with city: (then it allows me to enter in for the city).
Then the cout message displays: So you said your name is: And you live in (and then what I entered) city.
??? Why is it skipping over the first getline(cint, inputline) for the name12 variable???;