与运算短路的应用: 实现 if else
class Solution { public: int getSum(int n) { int ret = n; (n>0) && (ret += getSum(n-1)); return ret; } };