// strings #include #include using namespace std; int main() { string name = ""; cout << "Please enter your first name: "; cin >> name; cout << "Your name is " << name << endl; cout << "First initial is " << name[0] << endl; cout << "Please enter your whole name: "; cin.ignore(80,'\n'); // flushing the buffer getline(cin, name); cout << "Your whole name is " << name << endl; cout << "The length of your name is " << name.length() << endl; if (name < "m") { cout << "your name is alphabetically less than M" << endl; } string greeting = "Hello "; cout << greeting + name << endl; // concatenating two strings together return 0; }// end of main