摘要: 编程风格: 如果标识符是变量,如下 int weightInPound =4 对于命名常量,全大写:const double PI = 3.14 对于类或函数,每一个单词首字母都大写: void MyFunction( ) 不建议定义全局的变量,提倡全局的常量 const float TAX = 0 阅读全文
posted @ 2018-09-27 23:21 sky_lover 阅读(275) 评论(0) 推荐(0) 编辑