Answer to Question #99434 in C++ for Caleb

Question #99434
Assign secretID with firstName, a space, and lastName. Ex: If firstName is Barry and lastName is Allen, then output is:
Barry Allen
#include <iostream>
#include <string>
using namespace std;

int main() {
string secretID;
string firstName;
string lastName;

cin >> firstName;
cin >> lastName;

/* Your solution goes here */

cout << secretID << endl;
return 0;
}
1
Expert's answer
2019-11-28T09:05:08-0500

secretID = firstName + " " + lastName;


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS