C++, .NET 编码规范(一站式示例代码库编程规范)
目录1 概览................................................................................................................................................... 11.1 原则和主旨.................................................................................................................................... 11.2 术语................................................................................................................................................ 22 通用编程规范.................................................................................................................................. 32.1 明确和一致.................................................................................................................................... 32.2 格式和风格.................................................................................................................................... 32.3 库的使用........................................................................................................................................ 52.4 全局变量........................................................................................................................................ 52.5 变量的声明和初始化..................................................................................................................... 62.6 函数的声明和调用......................................................................................................................... 72.7 语句................................................................................................................................................ 82.8 枚举................................................................................................................................................ 92.9 空格.............................................................................................................................................. 142.10 大括号.......................................................................................................................................... 152.11 注释.............................................................................................................................................. 172.12 代码块.......................................................................................................................................... 263 C++ 编程规范................................................................................................................................. 273.1 编译器选项................................................................................................................................... 273.2 文件和结构................................................................................................................................... 293.3 命名规范...................................................................................................................................... 303.4 指针.............................................................................................................................................. 343.5 常量.............................................................................................................................................. 343.6 类型转换...................................................................................................................................... 353.7 Sizeof............................................................................................................................................ 363.8 字符串.......................................................................................................................................... 373.9 数组.............................................................................................................................................. 383.10 宏.................................................................................................................................................. 393.11 函数.............................................................................................................................................. 403.12 结构体.......................................................................................................................................... 433.13 类.................................................................................................................................................. 443.14 COM.............................................................................................................................................. 503.15 动态分配...................................................................................................................................... 513.16 错误和异常................................................................................................................................... 523.17 资源清理...................................................................................................................................... 553.18 控制流.......................................................................................................................................... 584 .NET 编码规范............................................................................................................................... 614.1 类库开发设计规范....................................................................................................................... 614.2 文件和结构................................................................................................................................... 614.3 程序集属性................................................................................................................................... 614.4 命名规范...................................................................................................................................... 614.5 常量.............................................................................................................................................. 654.6 字符串.......................................................................................................................................... 654.7 数组和集合................................................................................................................................... 674.8 结构体.......................................................................................................................................... 694.9 类.................................................................................................................................................. 704.10 命名空间...................................................................................................................................... 744.11 错误和异常................................................................................................................................... 744.12 资源清理...................................................................................................................................... 774.13 交互操作...................................................................................................................................... 90
很好教學參考
謝謝
页:
[1]