/* testfunc10.cpp CIS 150 6/9/2005 David Klick This program demonstrates pause functions and function overloading. */ #include using std::cout; void pause(); void pause(char* prompt); int main(void) { pause(); pause("Press enter "); return 0; } /* Waits for user to press enter key and returns. */ void pause() { cout << "Default message. Press enter to continue: "; getchar(); } /* Waits for user to press enter key and returns. */ void pause(char* msg) { cout << msg; getchar(); }