1234567891011
string str, temp; char c; cout << "Insert the character that ends the input:" << endl; cin >> c; cout << "Insert the string:" << endl; getline(cin, str, c);
Insert the character that ends the input: } Insert the string: asdf } do it} damn}