Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions