设计模式
文章平均质量分 92
nnbs
退役老年选手
展开
-
面向对象程序设计第六次实验课——群与子群(装饰模式)
装饰模式简介(内容来自head first 设计模式): http://blog.csdn.net/a19881029/article/details/8980503group.h#pragma once#include <vector>#include <string>#include "Person.h"using namespace std;// Group 是整个装饰模式中的con原创 2017-07-23 02:54:22 · 543 阅读 · 0 评论 -
面向对象程序设计第七次实验课——状态模式
题目要求是自己开脑洞想一个状态模式的例子,实现之。 例子详见后文。 状态模式简介: http://www.cnblogs.com/wangjq/archive/2012/07/16/2593485.htmlState.h#pragma once#include "Person.h"class Person;class State{ public: State()原创 2017-07-23 03:25:17 · 542 阅读 · 0 评论