I AM HAVING A HARD TIME WITH STRINGS. I DO NOT FULLY UNDERSTAND IT. THIS IS FROM A BASIC INTRO C++ CLASS HW PLEASE HELP THIS IS THE QUESTION
Write a program that uses cin to read a given name (like Louis) and a family name (like Armstrong) into two string variables, given and family. The program then makes assignments to two other string variables: givenFirst and givenLast. To givenFirst it assigns the concatenation of given, a space, and family. To givenLast, it assigns the concatenation of family, a comma followed by a space, and given.
The program then prints on two separate lines the values of givenFirst and givenLast.
So if the user typed in "
HERE'S WHAT I DID.............
int main () {
string given, family;
String givenFirst, givenLast;
cout << “Louis:”;
cin >> given;
cout << “Armistrong:”
cin >> family;
name1=given + “ “ + family;
name2 = givenLast + “,” + givenFirst;
cout << name1 << end1;
cout << name2 << end1;
return 0;
}