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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started