/* overload1.cpp David Klick CIS 250 2/21/05 Demonstrates function overloading. */ #include using std::cout; using std::endl; int blackbox(int, int); double blackbox(double, double); int main(void) { // demonstration of function overloading cout << blackbox(4, 7) << endl; // displays 11 cout << blackbox(4.0, 7.0) << endl; // displays 28 return 0; } int blackbox(int m, int n) { return m + n; } double blackbox(double m, double n) { return m * n; }