S2_命名风格

时间:2019-12-30 10:13:55   收藏:0   阅读:81

命名风格:

1)下划线风格

int   student_age;  (一般用于变量名、函数名)

2)小驼峰风格

int   studentAge;  (一般用于变量名、函数名)

3)大驼峰风格

class  StudentAge;  (一般用于“类名”)

4)全部大写 (一般用于宏)

#define  MAX_AGE  30

原文:https://www.cnblogs.com/lvcunda/p/12117963.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!