摘抄精简Google 开源项目风格指南:
http://zh-google-styleguide.readthedocs.org/en/latest/contents/
// /**/ 要统一,只使用一种
如,编程技巧、大致实现步骤、为何如此实现
int functions(double x, double y) {
return x+y;
} if (condition) {
} else {
} // Good - directives at beginning of line
if (lopsided_score) {
#if DISASTER_PENDING // Correct -- Starts at beginning of line
DropEverything();
#endif
BackToNormal();
}原文地址:http://blog.csdn.net/quzhongxin/article/details/45741013