Coded in C Visual Studios 2013 Write a program that will pro

Coded in C++; Visual Studios 2013

Write a program that will prompt for the full name of a person until I press

Solution

#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main(int argc,char** argv)
{
string name;
cout << \"Enter full name: \";
getline(cin,name,\'\ \');

istringstream iss(name);
string first, middle, last;
iss >> first >> middle >> last;

cout << \"First: \" << first << \'\ \';
cout << \"Middle: \" << middle << \'\ \';
cout << \"Last: \" << last << \'\ \';

return 0;
}

Coded in C++; Visual Studios 2013 Write a program that will prompt for the full name of a person until I press Solution#include <iostream> #include <st

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site