IT_元帅
On the way.
posts - 39,comments - 10,trackbacks - 0

设计模式
设计模式--代理模式实现C++
摘要: /**********************************设计模式--代理模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>#include <iostream>using namespac...阅读全文
posted @ 2010-10-18 23:56 IT_元帅 阅读(132) | 评论 (1) 编辑
设计模式--原型模式实现C++
摘要: /**********************************设计模式--原型模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class Prototype{ pu...阅读全文
posted @ 2010-10-18 23:55 IT_元帅 阅读(90) | 评论 (0) 编辑
设计模式--外观模式实现C++
摘要: /**********************************设计模式--外观模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class Subsystem1{ p...阅读全文
posted @ 2010-10-18 23:53 IT_元帅 阅读(56) | 评论 (0) 编辑
设计模式--装饰模式实现C++
摘要: /**********************************设计模式--装饰模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class Component{ pu...阅读全文
posted @ 2010-10-18 23:51 IT_元帅 阅读(42) | 评论 (0) 编辑
设计模式--适配器2模式实现C++
摘要: /**********************************设计模式--适配器2模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class Target{ pub...阅读全文
posted @ 2010-10-18 23:47 IT_元帅 阅读(36) | 评论 (0) 编辑
设计模式--适配器1模式实现C++
摘要: /**********************************设计模式--适配器1模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class Target{ pub...阅读全文
posted @ 2010-10-18 23:46 IT_元帅 阅读(28) | 评论 (0) 编辑
设计模式--桥接模式实现C++
摘要: /**********************************设计模式--桥接模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class AbstractionIm...阅读全文
posted @ 2010-10-18 23:45 IT_元帅 阅读(105) | 评论 (0) 编辑
设计模式--组成模式实现C++
摘要: /**********************************设计模式--组成模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>#include <vector>using namespace ...阅读全文
posted @ 2010-10-18 23:41 IT_元帅 阅读(33) | 评论 (0) 编辑
设计模式--命令实现C++
摘要: /**********************************设计模式--命令实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class Reciever{ publi...阅读全文
posted @ 2010-10-18 23:38 IT_元帅 阅读(43) | 评论 (0) 编辑
设计模式--单件实现C++
摘要: /**********************************设计模式--单件实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class Singleton{publi...阅读全文
posted @ 2010-10-18 23:35 IT_元帅 阅读(79) | 评论 (0) 编辑
设计模式--生成器实现C++
摘要: /**********************************设计模式--生成器实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class Product{ publi...阅读全文
posted @ 2010-10-18 23:32 IT_元帅 阅读(38) | 评论 (0) 编辑
设计模式----抽象工厂C++实现
摘要: /**********************************设计模式--抽象工厂实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class AbstractProdu...阅读全文
posted @ 2010-10-18 23:27 IT_元帅 阅读(180) | 评论 (0) 编辑