// compile this file after creating a temp.h
#include<iostream.h>
#include"temp.h" // contains the function template definition
int main()
{
int a = 10, b= 20;
float c;
c = max(a,b); //instance of max() template
cout << "Maximum value is = " << c <<endl;
getch();
return 0;
}