// pgm18 functions // 10/5/16 #include #include #include using namespace std; // function declaration // prototype // tells the compiler that you will write such a function void second(); void hello() { cout << "hello world!" << endl; return; } int main() { for (int i=0;i<3;i++) hello(); cout << "in main, before call to second: " << endl; second(); cout << "in main, after call to second" << endl; return 0; } /* void second() { cout << "in function second, calling hello..." << endl; hello(); cout << "good bye." << endl; return; } */