//  File: fover1.C
//
//  Function overloading illustrated

#include <iostream.h>

//  Four functions named foo with different signatures

void foo (int a, int b)     { cout << "int int\n" ;     }

void foo (int a, float b)   { cout << "int float\n" ;   }

void foo (float a, int b)   { cout << "float int\n" ;   }

void foo (float a, float b) { cout << "float float\n" ; }


main() {
   int n=1, m=2 ;
   float x=3.1, y=2.4 ;

   foo(n,m) ;
   foo(n,x) ;
   foo(x,n) ;
   foo(x,y) ;
}
