欢迎来到天天文库
浏览记录
ID:40548072
大小:492.85 KB
页数:53页
时间:2019-08-04
《google c++ coding style》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、GoogleC++风格指南-中文版Release3.180yospaly,yulefoxOctober17,2011CONTENTS1目录31.11.头文件..............................31.1.11.1.#define保护.......................31.1.21.2.头文件依赖........................31.1.31.3.内联函数.........................41.1.41.4.-inl.h文件.......................41.1.
2、51.5.函数参数的顺序......................51.1.61.6.#include的路径及顺序..................51.1.7译者(YuleFox)笔记......................61.22.作用域..............................61.2.12.1.名字空间.........................61.2.22.2.嵌套类..........................81.2.32.3.非成员函数,静态成员函数,和全局函数............
3、81.2.42.4.局部变量.........................91.2.52.5.静态和全局变量......................91.2.6译者(YuleFox)笔记......................101.33.类................................101.3.13.1.构造函数的职责......................101.3.23.2.默认构造函数.......................111.3.33.3.显式构造函数..................
4、.....111.3.43.4.拷贝构造函数.......................111.3.53.5.结构体VS.类......................121.3.63.6.继承...........................121.3.73.7.多重继承.........................131.3.83.8.接口...........................131.3.93.9.运算符重载........................141.3.103.10.存取控制............
5、.............141.3.113.11.声明顺序.........................141.3.123.12.编写简短函数.......................151.3.13译者(YuleFox)笔记......................151.44.来自Google的奇技........................151.4.14.1.智能指针.........................161.4.24.2.cpplint.........................161.55.其他
6、C++特性...........................161.5.15.1.引用参数.........................161.5.25.2.函数重载.........................171.5.35.3.缺省参数.........................171.5.45.4.变长数组和alloca()...................171.5.55.5.友元...........................181.5.65.6.异常..........................
7、.181.5.75.7.运行时类型识别......................191.5.85.8.类型转换.........................191.5.95.9.流............................20i1.5.105.10.前置自增和自减......................201.5.115.11.const的使用......................211.5.125.12.整型..........................211.5.135.13.64位下的可移植性....
8、................221.5.145.14.预处理宏.........................231.5.155.15.0和NULL.....
此文档下载收益归作者所有