第一种int max2(int a, int b){ return a>b?a:b;}int max3(int a, int b, int c){ return max2(a, max2(b, c));}第二种int max3(int a, int b, int c){ int max = a; if(max < b) max = b; if(max < c) max = c; return max;}