1、if条件后的第一条语句,在条件为true时执行,否则不执行; 当if下执行语句只有一句时,可省略括号,否则加括号。 (CLion的自动代码缩进也可以说明这一点)
2、if else,if代码块里有return语句时,不用加else{},函数遇到return即返回,后面的语句不会再执行。