bluetoothlover_doc icon indicating copy to clipboard operation
bluetoothlover_doc copied to clipboard

变量命名规则

Open supperthomas opened this issue 2 years ago • 4 comments

常见的变量命令方法

supperthomas avatar Jun 13 '23 06:06 supperthomas

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

supperthomas avatar Jun 13 '23 06:06 supperthomas

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

supperthomas avatar Jun 13 '23 06:06 supperthomas

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

supperthomas avatar Jun 13 '23 07:06 supperthomas

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

supperthomas avatar Jun 13 '23 07:06 supperthomas