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