// File: over3.cpp // // Simple case of function overloading #include using namespace std ; void PrintMe (int i) { cout << "int i = " << i << endl ; cout << endl ; } void PrintMe(float x, float y) { cout << "float x = " << x << endl ; cout << "float y = " << y << endl ; cout << endl ; } int main() { int n = 17 ; float pi = 3.14159, root2 = 1.4142 ; PrintMe(n) ; PrintMe(pi, root2) ; PrintMe(pi, n) ; PrintMe(pi) ; }