目录
第一章 概述............................................................................................................................................4
1.1 术语定义.........................................................................................................................................4
1.1.1 Pascal
大小写
..........................................................................................................................4
1.1.2 Camel
大小写
...........................................................................................................................4
1.1.3
匈牙利命名法
..........................................................................................................................4
1.2 文件命名组织..................................................................................................................................4
1.2.1
文件命名
..................................................................................................................................4
1.2.2
文件注释
..................................................................................................................................5
第二章 代码外观......................................................................................................................................6
2.1 列宽.................................................................................................................................................6
2.2 换行.................................................................................................................................................6
2.3 缩进.................................................................................................................................................6
2.4 空行.................................................................................................................................................6
2.5 空格.................................................................................................................................................6
2.6 括号 - ()...........................................................................................................................................7
2.7 花括号 - {}......................................................................................................................................7
第三章 程序注释......................................................................................................................................9
3.1 注释概述.........................................................................................................................................9
3.2 文档型注释.....................................................................................................................................9
3.3 类 C 注释........................................................................................................................................10
3.4 单行注释.......................................................................................................................................10
3.5 注释标签.......................................................................................................................................10
第四章 声明..........................................................................................................................................14
4.1 每行声明数...................................................................................................................................14
4.2 初始化...........................................................................................................................................14
4.3 位置...............................................................................................................................................14
4.4 类和接口的声明...........................................................................................................................15
4.5 字段的声明...................................................................................................................................15
第五章 命名规范..................................................................................................................................16
5.1 命名概述.......................................................................................................................................16
5.2 大小写规则...................................................................................................................................16
5.3 缩写...............................................................................................................................................17
5.4 命名空间.......................................................................................................................................17
5.5 类...................................................................................................................................................18
5.6 接口...............................................................................................................................................18
5.7 属性 (ATTRIBUTE).........................................................................................................................19
5.8 枚举 (ENUM)..................................................................................................................................19
5.9 参数...............................................................................................................................................19
2