// Give an input of: // one<enter>two<enter>three<enter> // // And the output is: // // > one // two // You gave: one // > three // You gave: two #include <iostream> #include <string> using namespace std; int main() { string text; cout << "> "; getline(cin, text); cout << "You gave: " << text << endl; cout << "> "; getline(cin, text); cout << "You gave: " << text << endl; return EXIT_SUCCESS; }