C 語言的Ternary Operator ... 有時候if else的情況可以考慮寫成ternary operator:. int x = (expr) ? a : b;. 也就是整數x如果符合某個條件(expr),則x=a, ...
確定! 回上一頁