设计模式
sz-lcw
这个作者很懒,什么都没留下…
展开
-
大话设计模式——策略模式(C++实现)
用C++实现了《大话设计模式》中的策略模式(Strategy)原创 2014-09-19 21:24:16 · 788 阅读 · 0 评论 -
大话设计模式-装饰模式(C++)
《大话设计模式》的装饰模式的C++实现。结构图:Decorator.h:#ifndef _DECORATOR_H#define _DECORATOR_H#include #include using namespace std;//ConcreteComponent类class CPerson{public: CPerson(){}; CPerson(s原创 2014-09-22 19:38:54 · 845 阅读 · 0 评论 -
GoF23种设计模式
设计模式的经典名著——Design Patterns: Elements of Reusable Object-Oriented Software,中译本名为《设计模式——可复用面向对象软件的基础》的四位作者Erich Gamma、Richard Helm、Ralph Johnson,以及John Vlissides,这四人常被称为Gang of Four,即四人组,简称GoF。 经典的《转载 2014-09-13 20:26:30 · 706 阅读 · 0 评论 -
大话设计模式——简单工厂模式(C++实现)
将《大话设计模式》书中的简单工厂模式原创 2014-09-16 21:53:59 · 659 阅读 · 0 评论