I am having a problem with getting my input to take the first and last name it will only take my first name and output it so I type is John Smith and only John displays after words can you help me please.
here is my code:
using namespace std;
cout << "Enter first and last name: ";
cin >> username;
cout << endl;
cout << "Your name is " << username << endl;