#include <iostream> using namespace std; void foo(int a) { cout << "foo(int a)" << endl; } void foo(int a, int b) { cout << "foo(int a, int b)" << endl; } void foo(double a, int b) { cout << "foo(double a, int b)" << endl; } int main() { int a = 1; int b = 2; int c = 6.8; foo(a); foo(a, b); foo(c, b); return 0; }