三元运算如:int a = 1;int b = 2;int c = a > b? a : b;写成if语句就是if(a > b){ c = a;} else { c = b;}
posted on 2014-12-12 14:40 博客园Jason 阅读(191) 评论(0) 编辑 收藏 举报