摘要: #include #include using namespace std;class String { // 一切都是深拷贝!private : char *m_data;public : String(const char *str = NULL); String(const String&);... 阅读全文
posted @ 2013-04-12 12:27 小尼人00 阅读(339) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class HeapOnly {public : HeapOnly() {} void destroy() const { delete this; }private : ~HeapOnly() {}};class HeapStack {p... 阅读全文
posted @ 2013-04-12 10:30 小尼人00 阅读(155) 评论(0) 推荐(0) 编辑