#include <iostream> #include <string> using namespace std; string answer( string question); int main() { cout << answer( "How are you? ") << endl; cout << answer( "Sure? ") << endl; return 0; } string answer( string question) { cout << question; string s; getline(cin,s); return s; }