摘要: 条件运算符(三元/三目),条件表达式 条件 ? ① : ② int m=50; int n=20; int a=(m>n)? (m-n) : (n-m) 条件表达式(m>n)为true ;返回 1; 条件表达式(m>n)为false ;返回 2; int a=(50>20)? (m-n) : (n- 阅读全文
posted @ 2018-07-02 22:15 Monica_维维 阅读(144) 评论(0) 推荐(0) 编辑