摘要: 12.3 Things to remember when using new in constructors ) If you use new in constructors, use delete in destructor. Their use should be compatible, pai 阅读全文
posted @ 2018-10-16 22:11 Gabriel_Ham 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 12.1 Dynamic memory and classes 12.1.1 A review example and static class members Now try implement a String class(a flawed one): // sayings1.cpp using 阅读全文
posted @ 2018-10-16 20:26 Gabriel_Ham 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 11.5.3 An implementation comment ) The separation of interface from implementation is one of the goals of OOP. ) Example of the implementation of the 阅读全文
posted @ 2018-10-16 11:13 Gabriel_Ham 阅读(154) 评论(0) 推荐(0) 编辑