#include<iostream>
template < class T > T larger(T a,T b); // 不能放在main函数里面
main()
{
using std::cout;
int a = 1;
int b = 100;
cout << larger( a ,b );
}
template < class T > T larger(T a,T b)
{
return a > b ? a : b;
}
#include<iostream>
template < class T > T larger(T a,T b); // 不能放在main函数里面
main()
{
using std::cout;
int a = 1;
int b = 100;
cout << larger( a ,b );
}
template < class T > T larger(T a,T b)
{
return a > b ? a : b;
}