IfStmtsMustUseBraces: Avoid using if statements without using curly braces.
翻译 if 块必须用括号:避免使用 if 块时不使用花括号 {}
· WhileLoopsMustUseBraces: Avoid using 'while' statements without using curly braces.
翻译 while 循环必须使用括号:避免使用 while 块时不使用 {}
· IfElseStmtsMustUseBraces: Avoid using if..else statements without using curly braces.
翻译 if…else… 块必须使用括号:避免使用 if…else… 块时不使用 {}
· ForLoopsMustUseBraces: Avoid using 'for' statements without using curly braces.
翻译 for 循环必须使用括号:避免在 for 循环时不使用 {}
更多请参考:http://blog.youkuaiyun.com/jack0511/article/details/5260751
编程规范:代码块必须使用括号
本文强调了在编程中使用if、while、if...else和for循环时,必须确保代码块内使用花括号{}
3317

被折叠的 条评论
为什么被折叠?



