// 函数模板的简单应用
#include <iostream>
using namespace std;
template<typename Type>
Type MAX(Type a, Type b)
{
return a > b ? a : b;
}
int main()
{
cout << MAX<float>(1.1,20) << endl;
cout << MAX(10, 20) << endl;
cout << MAX((float)2, (float)3) << endl;
return 0;
}