摘要:
观察者模式:被观察者:吕布观察者:张飞,关羽,刘备#include <iostream>#include <vector>#include <list>using namespace std;class SubjectPeople;class ObserverPeople{public: virtual void Action()=0;};class SubjectPeople{public: virtual void RegisterPeople(ObserverPeople* ob) = 0; virtual void RemovePeople(Obse 阅读全文
posted @ 2011-12-23 11:30 一年级的小学生 阅读(381) 评论(0) 推荐(0) 编辑