#include<iostream>
#include<string>
using namespace std;
template<typename T>
int max(T &a,T &b){
if(a>b){
return 1;
}else if(a<b){
return -1;
}else{
return 0;
}
}
template<>
int max<double>(double &a,double &b){
cout<<"使用特化模板"<<endl;
if(a>b){
return 10086;
}else if(a<b){
return-10086;
}else{
return 0;
}
}
int main(){
int a=10;
int b=10;
cout<<max(a,b)<<endl;
double aa=10.68;
double bb=9.36;
cout<<max(aa,bb)<<endl;
return 0;
}