摘要: // test07.cpp : Defines the entry point for the console application.// #include "stdafx.h"//设计模式第7章 适配器模式 class Duck{public: virtual void quack() = 0; 阅读全文
posted @ 2017-07-10 11:00 wangting235 阅读(216) 评论(0) 推荐(0) 编辑
摘要: // test06.cpp : Defines the entry point for the console application.////设计模式第5章 命令模式#include "stdafx.h"#include <string>#include <iostream>using names 阅读全文
posted @ 2017-07-03 14:39 wangting235 阅读(128) 评论(0) 推荐(0) 编辑
摘要: // test05.cpp : Defines the entry point for the console application.//#include "stdafx.h"//设计模式第5章 单件模式class Singleton{private: static Singleton* uniq 阅读全文
posted @ 2017-07-03 14:37 wangting235 阅读(167) 评论(0) 推荐(0) 编辑
摘要: // test04.cpp : Defines the entry point for the console application.////设计模式第4章 工厂模式#include "stdafx.h"#include <string>#include <vector>#include <ios 阅读全文
posted @ 2017-07-03 14:36 wangting235 阅读(153) 评论(0) 推荐(0) 编辑
摘要: // test03.cpp : Defines the entry point for the console application.////设计模式第3章 装饰者模式#include "stdafx.h"#include <string>#include <iostream>//#include 阅读全文
posted @ 2017-07-03 14:35 wangting235 阅读(113) 评论(0) 推荐(0) 编辑
摘要: // test02.cpp : Defines the entry point for the console application.////设计模式第2章 观察者模式#include "stdafx.h"#include <vector>using namespace std;class Obs 阅读全文
posted @ 2017-07-03 14:33 wangting235 阅读(178) 评论(0) 推荐(0) 编辑
摘要: // test01.cpp : Defines the entry point for the console application.////第一章,设计模式入门,策略模式#include "stdafx.h"#include "test01.h"class FlyBehavior{public: 阅读全文
posted @ 2017-07-03 14:31 wangting235 阅读(259) 评论(0) 推荐(0) 编辑