#include <string> #include <iostream> using namespace std; int main(int argc, char** argv) { string myString = "hello"; myString += ", there"; string str2 = myString; if (myString == str2) { str2[0] = 'H'; } cout << myString << endl; cout << str2 << endl; }