- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 单例模式的进化过程
一说到设计模式,大家一定会想到单例模式。当然,单例模式也有很多的版本哦最大众的版本class Singleton{public: static Singleton *pstr; static Singleton* Get() { if(pstr == NULL) { pstr = new Singlet
2016-09-07 20:57:19
302
原创 监听者模式
#include #include #include #include using namespace std;class Listener{public: Listener(string name) :mname(name){} virtual void handlemsg(int msgid) = 0;protected: string mname;};class
2015-12-28 00:25:03
353
空空如也
Linux环境下自己实现myshell
2015-10-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人