//求a,b,c中的最大值
int temp = (a > b)? a : b;
max = (temp > c) ? max : c;
//嵌套使用
int max = (a > b ? a : b) > c ? (a > b ? a : b) : c;
//求a,b,c中的最大值
int temp = (a > b)? a : b;
max = (temp > c) ? max : c;
//嵌套使用
int max = (a > b ? a : b) > c ? (a > b ? a : b) : c;