摘要:
#include #include using namespace std;class String { // 一切都是深拷贝!private : char *m_data;public : String(const char *str = NULL); String(const String&);... 阅读全文
摘要:
#include using namespace std;class HeapOnly {public : HeapOnly() {} void destroy() const { delete this; }private : ~HeapOnly() {}};class HeapStack {p... 阅读全文