#include <iostream>
usingnamespace std;
// Functions vary only by parameter type
void doSomething( int x );
void doSomething( double x );
int main() {
int y = 6;
double b = 9.0;
doSomething( y );
doSomething( b );
return 0;
}
void doSomething( int x ) {
cout << "doSomething( int x ) called." << endl;
}
void doSomething( double x ) {
cout << "doSomething( double x ) called." << endl;
}