上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: 以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Proxy.h #pragma once class Subject { public: virtual ~Subject(); virtual void Request() = 0; protected: Subject 阅读全文
posted @ 2019-12-21 21:50 fourmii 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Facade.h #pragma once class Subsystem1 { public: Subsystem1(); virtual ~Subsystem1(); void Operation(); protect 阅读全文
posted @ 2019-12-21 20:37 fourmii 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Flyweight.h #pragma once #include<string> class FlyWeight { public: virtual ~FlyWeight(); virtual void Operatio 阅读全文
posted @ 2019-12-21 18:27 fourmii 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Component.h #pragma once class Component { public: Component(); virtual ~Component(); virtual void Operation() 阅读全文
posted @ 2019-12-21 17:44 fourmii 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Decorator.h #pragma once class Component { public: virtual ~Component(); virtual void Operation(); protected: C 阅读全文
posted @ 2019-12-21 16:33 fourmii 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //****************************类模式的Adaptr******************************** //Adapter.h #pragma once class Target { 阅读全文
posted @ 2019-12-21 15:41 fourmii 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //AbstractionImp.h #pragma once class AbstractionImp { public: virtual ~AbstractionImp(); virtual void Operation( 阅读全文
posted @ 2019-12-21 14:30 fourmii 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Prototype.h #pragma once class Prototype { public: virtual ~Prototype(); virtual Prototype* clone() const = 0; 阅读全文
posted @ 2019-12-20 22:22 fourmii 阅读(225) 评论(0) 推荐(0) 编辑
摘要: //以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Product.h #pragma once class Product { public: Product(); ~Product(); void ProducePart(); protected: private: 阅读全文
posted @ 2019-12-20 21:30 fourmii 阅读(347) 评论(0) 推荐(0) 编辑
摘要: //以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Singleton.h #pragma once #include<iostream> class Singleton { public: static Singleton* Instance(); protected 阅读全文
posted @ 2019-12-20 20:36 fourmii 阅读(205) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页