#include #include using namespace std; int main() { string word1 {"hello"}; string word2 {"world"}; string word3; cout << "This has a new line \n"; cout << "This does not have a new line"; cout << "This has an endl" << endl; cout << endl << endl; word3 = word1 + ' ' + word2 + '!'; cout << "Word3 is \"" << word3 << "\"" << endl; cout << endl << endl; /* cout << "Enter a word: "; cin >> word1; cout << "word1 is now \"" << word1 << '"' << endl; */ cout << endl << endl; cout << "Enter a word: "; cin >> word1; cout << "word1 is now \"" << word1 << '"' << endl; cout << endl << endl; cout << "Enter a phrase "; cin.ignore(100,'\n'); getline(cin, word1); cout << "word1 is now \"" << word1 << '"' << endl; return 0; }