3. 复习String类的实现过程

2018-08-08  本文已影响0人  陈_振

头文件

Screen Shot 2018-08-08 at 06.43.31.png

构造函数 (inline-建议编译器把该函数写成inline的方式)

Screen Shot 2018-08-08 at 06.57.08.png

析构函数

Screen Shot 2018-08-08 at 07.00.38.png

拷贝构造函数

Screen Shot 2018-08-08 at 07.02.15.png

拷贝赋值

Screen Shot 2018-08-08 at 07.08.23.png
上一篇 下一篇

猜你喜欢

热点阅读