supperthomas / bluetoothlover_doc

this is about the learning station about friends.
https://supperthomas-wiki.readthedocs.io/
Apache License 2.0
44 stars 26 forks source link

变量命名规则 #484

Open supperthomas opened 1 year ago

supperthomas commented 1 year ago

常见的变量命令方法

supperthomas commented 1 year ago

google命名规范: https://zh-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/naming/#section-5

supperthomas commented 1 year ago

https://github.com/RT-Thread/rt-thread/blob/master/documentation/contribution_guide/coding_style_cn.md rt-thread

supperthomas commented 1 year ago

https://blog.csdn.net/weixin_43758823/article/details/84888470

supperthomas commented 1 year ago

属性+类型+描述 属性一般是小写字母+: g:全局变量 m:类成员变量 s:静态变量 c_:常量 类型就多了: b:bool sz:以零结束的字符串 p:指针 n:整整 dw:双字 l:长整型 无符号:u 函数:fn