Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Sep 16, 2021
Embed
What would you like to do?
#include <iostream>
#include <string>
using namespace std;
int main(){
string name;
string last;
cout<<"Enter Your Full Name: ";
cin>>name;
cin.get();
getline(cin, last);
cout<<"Your First Name: "<<name<<endl;
cout<<"Your Last Name: "<<last<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment