//Demonstrates the class String. #include #include "mystring.h" int main( ) { String first_name, last_name, record_name; cout << "Enter your first and last name:\n"; cin >> first_name >> last_name; record_name = last_name + ", " + first_name; cout << "Your name in our records is: "; cout << record_name << endl; cout << "Your last name is spelled: "; for (int i = 0; i < last_name.length( ); i++) cout << last_name.one_char(i) << " "; cout << endl; String motto("Your records are our records."); cout << "Our motto is\n"; cout << motto << endl; cout << "Please suggest a better (one line) motto:\n"; motto.input_line(cin); cout << "Our new motto will be:\n"; cout << motto << endl; return 0; }