// 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; return 0; }// end of main