Question: help with my code please it needs to output with a name that you type and end with the full name first middle and last

help with my code please

it needs to output with a name that you type and end with the full name

first middle and last

for C++

ex:

enter firstname-john

middle name michael

last name-smith

full name john Michael smith

my code:

#include "stdafx.h" #include #include #include

using namespace std; int manin() { string firstname; string middlename; string lastname;

cout<< "Enter your first name: " << endl; getline(cin, firstname); cout<< "Enter your middle name: " << endl; getline(cin, middlename); cout<< "Enter your last name: " << endl; getline(cin, lastname);

system ("pause"); return 0;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!