#include <iostream>
#include <string>
using namespace std;
/****************************************************************************
* *
* Function: main *
* *
****************************************************************************/
int main() {
// Concatenate several strings
string first = "Hampden"; // Set the first string
string middle = "
string last = "College"; // Set the third string
string name = first + middle + last; // Join with no blanks
cout << "We are " << name << endl;
name = first + '-' + middle + ' ' + last; // Join with dash and blank
cout << "We are " << name << endl;
// Print individual characters
cout << "or " << name[0] << name[8] << name[15] << " for short" << endl;
// Reassign individual characters and print again
name[0] = 'R'; // Change the first character
name[8] = 'M'; // Change the ninth character
cout << "But don't call us " << name[0] << name[8] << name[15] << endl;
cout << "because " << name << " sounds stupid" << endl;
cout << "The size of " << name << "is " << name.size() << endl;
return 0;
}