4.10 三目运算符

z=(a>b)?a:b

如果a>b为真,则z=a;

如果a>b为假,则z=b;

posted @ 2015-05-21 20:38  cppstudy  阅读(159)  评论(0编辑  收藏  举报