#include
#include
#include
template
AT max(AT x,AT y)
{
return(x>y)?x:y;
}
main()
{
int i1=10,i2=56;
float f1=12.5,f2=24.5;
double d1=50.344,d2=4656.34;
char c1='k',c2='n';
cout<<"the max of i1,i2 is:"<
cout<<"the max of f1,f2 is:"<
cout<<"the max of d1,d2 is:"<
cout<<"the max of c1,c2 is:"<
return 0;
}
mb.JPG
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27660822/viewspace-775461/
,如需转载,请注明出处,否则将追究法律责任。