超简单!求三个数中最值(利用三目运算符?:)

利用三目运算符求三个数最大值:

int a,b,c,temp
temp=a>b?a:b;
return temp>c?temp:c;

猜你喜欢

转载自blog.csdn.net/dz77dz/article/details/81394732