/******************************************/ /* */ /* Author: L. Frye */ /* */ /* Date: May 26, 2004 */ /* */ /* Filename: functions.cpp */ /* */ /* Description: This is a program to */ /* illustrate how functions work. */ /* */ /******************************************/ #include using namespace std; void fun1(); void fun2(); int main() { cout << "This is a beginning C++ program" << endl; cout << "It will demonstrate how functions are called" << endl; fun1(); cout << "This is so much fun!" << endl; fun2(); cout << "Can we do more?" << endl; return 0; } // end main void fun1() { cout << "Let's go on vacation." << endl; cout << "We can go to the beach." << endl; return; } // end function fun1 void fun2() { cout << "Maybe we should go to the mountains." << endl; cout << "There are so many choices." << endl; return; } // end function fun2