摘要: #include #include using namespace std;#define DESTROY_POINTER(ptr) if (ptr) { delete ptr; ptr = NULL; }class Observer{public: virtual void Update(s... 阅读全文
posted @ 2014-12-15 11:52 stanley19861028 阅读(166) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;#define DESTROY_POINTER(ptr) if (ptr) { delete ptr; ptr = NULL; }class TemplateMethod{public: void AlgorithmA() { Step... 阅读全文
posted @ 2014-12-15 09:55 stanley19861028 阅读(170) 评论(0) 推荐(0) 编辑