- 博客(2)
- 资源 (9)
- 收藏
- 关注
原创 设计模式--单例模式 C++实现
#include using namespace std;class Singleton{ public: static Singleton* GetInstance(); private: static Singleton* instance; Singleton(){}; class Garbo { public:
2014-04-27 22:19:24 482
原创 设计模式--命令模式 C++实现
#include#includeusing namespace std;#define num 2class Light{ public: Light(string s); void on(); void off(); protected: string concretelight;};class Stereo{ publi
2014-04-23 17:22:41 538
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人