Write a C++ program that accepts the complete name of a person (first middle last) then print them separately.
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main()
{
// useless. We need user keyboard input. Not embeded name
// in Standard C++ which is the norm.
string s("John Doe");
istringstream iss(s);
string sub;
iss >> sub;
cout << "First Name: " << sub << endl;
iss >> sub;
cout << "Last Name: " << sub << endl;
return 0;
}