// Demonstrate function overloading with // 1. different numbers of parameters // 2. different types of parameters #include #include "ouracct.h" #include "ourstr.h" double newRound(double x, int n) { return x * n; } double newRound(double x) { return x; } void show(bankAccount b) { cout << b << endl; } void show(string s) { cout << "{ string: " << s << " }" << endl; } int main() { show(bankAccount("Hall", "1234", 100)); show("One string argument to show"); cout << newRound(1.2, 3) << endl; cout << newRound(1.2) << endl; return 0; }