/******************************************/ /* */ /* Author: L. Frye */ /* */ /* Date: May 26, 2004 */ /* */ /* Filename: functions2.cpp */ /* */ /* Description: This is a program to */ /* illustrate how functions work. */ /* It will have one function call */ /* another function. */ /* */ /******************************************/ #include using namespace std; void fun1(); void fun2(); int main() { cout << "This is a program that will show one "; cout << "function call another one." << endl; cout << "I am sure it will be interesting." << endl; fun1(); cout << "This is so much fun!" << endl; cout << "I love programming!" << endl; return 0; } // end main void fun1() { cout << "I am now in function fun1." << endl; fun2(); cout << "We should be sitting by a pool right now!" << endl; return; } // end function fun1 void fun2() { cout << "Go Golden Bears!" << endl; cout << "Let's win some this year." << endl; return; } // end function fun2