设计模式--代理模式实现C++
摘要:/**********************************设计模式--代理模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>#include <iostream>using namespac...
阅读全文
posted @
2010-10-18 23:56
newwy
阅读(449)
推荐(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
newwy
阅读(333)
推荐(0)
设计模式--享元模式实现C++
摘要:/**********************************设计模式--享元模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include #include #include #include using namespace std;class Flyweight{ public: virtual ~Flyweight(){} virtual void Operation(const string & extrinsicState){}
阅读全文
posted @
2010-10-18 23:54
newwy
阅读(392)
推荐(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
newwy
阅读(586)
推荐(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
newwy
阅读(294)
推荐(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
newwy
阅读(215)
推荐(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
newwy
阅读(251)
推荐(0)
设计模式--桥接模式实现C++
摘要:/**********************************设计模式--桥接模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class AbstractionIm...
阅读全文
posted @
2010-10-18 23:45
newwy
阅读(413)
推荐(0)
设计模式--组成模式实现C++
摘要:/**********************************设计模式--组成模式实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>#include <vector>using namespace ...
阅读全文
posted @
2010-10-18 23:41
newwy
阅读(346)
推荐(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
newwy
阅读(264)
推荐(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
newwy
阅读(289)
推荐(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
newwy
阅读(391)
推荐(0)
设计模式----抽象工厂C++实现
摘要:/**********************************设计模式--抽象工厂实现*C++语言*Author:WangYong*Blog:http://www.cnblogs.com/newwy********************************/#include <iostream>using namespace std;class AbstractProdu...
阅读全文
posted @
2010-10-18 23:27
newwy
阅读(712)
推荐(0)