/*************************************** ask_question.cpp Example source file for section 4a of the LoomSoft article: Organizing your Project Web: http://loomsoft.net Email: jay@loomsoft.net ***************************************/ #include // This header file is required for i/o stream processes void ask_question(void) // A function to ask a question { int age = 0; // Declare an integer called age, which we use to store input cout << "What is your age:"; // Out put the question phrase cin >> age; // Input the typed in number into the variable age cout << "Wow, you're " << age << " years old!" << endl; // Output a nice little message }