Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //5/21/2019
- //Module 08
- #include <iomanip>
- #include <string>
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Hello, welcome" << endl;
- cout << "Please enter a name no more than " << endl;
- const int Name_length = 32;
- char first_name[Name_length], middle_name[Name_length], last_name[Name_length];
- cout << " " << endl;
- cin.getline( first_name, Name_length - 1);
- cout << "Please enter a name no more than " << endl;
- cin.getline(middle_name, Name_length - 1);
- cout << "Please enter a name no more than " << endl;
- cin.getline(last_name, Name_length - 1);
- char Full_name[100];
- strcat_s(Full_name, last_name);
- strcat_s(Full_name, first_name);
- strcat_s(Full_name, middle_name);
- cout << Full_name << endl;
- system("pause"); //Pauses the program for the user to look at the data
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement