#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;
}
#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;
}
本文标题:59 - function Templates with Mul
本文链接:https://www.haomeiwen.com/subject/gvzbnxtx.html
网友评论