/* testfunc01.cpp CIS 150 6/9/2005 David Klick This program demonstrates how to create and call a very simple function. */ #include using std::cout; void greeting(); // function prototype int main(void) { greeting(); // call function return 0; } /* This function displays the greeting "Hello, world!" and then goes to a new line. */ void greeting() { cout << "Hello, world!\n"; return; // optional since no value is returned }