text: // This program asks the user for their first name and middle/last initials
  // and outputs their user name.
  
  #include <iostream>
  #include <string>
  
  int main()
  {
    std::string first_name;
      std::cout << "Enter your first name: ";
    getline(std::cin, first_name);
  
    char middle_initial, last_initial;
    std::cout << "Enter the first initial of your middle name: ";
    std::cin.get(middle_initial);
    std::cin.ignore();
  
  std::cout << "Enter the first initial of your last name: ";
    last_initial = std::cin.get();
    std::cin.ignore();
  
    // create username out of user's first name and middle/last initials
    std::string player = (first_name + middle_initial + last_initial);
    std::cout << "Your user name is \"" << player << "\"\n";
  
    return 0;
  }
  