// strings #include #include #include using namespace std; int main() { string name = ""; cout << "Please enter your first name: "; cin >> name; cout << "Your name is " << name << endl; cout << "Your first initial is " << name[0] << endl; cout << "The length of your name is " << name.length() << endl; cout << "The very last letter of your name is " << name[name.length() - 1] << endl; if (name < "m") { cout << "Your name is alphabetically less than m" << endl; } else { cout << "Your name is alphabetically greater than (or equal to) m" << endl; } string greeting = "Goodbye "; cout << greeting + name << endl; // concatenating two strings together system("pause"); return 0; }// end of main