If I had a statement in my C++ program to enter your name like this.
Please enter your last name. What would I use to statement would I use to enter your last name.
string lastname;
[cout << "Please enter your last name" << endl;
cin >> lastname;
or
cin.getline (lastname);
or
what?
[/code]