2012年7月24日

proxy模式

摘要: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <queue> 5 #include <set> 6 #include <algorithm> 7 #include <map> 8 #include <stack> 9 using namespace std;10 11 // 女学生类12 // 相当于client类13 class cSchoolGirl {14 private:15 string m 阅读全文

posted @ 2012-07-24 19:43 kakamilan 阅读(248) 评论(0) 推荐(0) 编辑

facade模式

摘要: 有时不想对内部了解太多,只想获得一个接口,facade模式最好不过。 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <queue> 5 #include <set> 6 #include <algorithm> 7 #include <map> 8 #include <stack> 9 using namespace std;10 11 class Subsystem1 {12 public:13 v 阅读全文

posted @ 2012-07-24 16:21 kakamilan 阅读(182) 评论(0) 推荐(0) 编辑

导航