59 - function Templates with Mul
2018-01-08 本文已影响0人
社交帐号直接注册
#include <iostream>
using namespace std;
template <class first,class second>
first smaller(first a,second b)
{
return(a<b?a:b);
}
int main()
{
int x=89;
double y=56.88;
cout << smaller(y,x) << endl;
}