2011年5月25日

Decorator (C++实现)

摘要: // Decorator.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>using namespace std;class Component{public:Component(){}virtual ~Component(){}virtual void Operation()=0;};class ConcreteComponent :public Component{public:ConcreteComponent(){cout<<"Construction of C 阅读全文

posted @ 2011-05-25 18:18 IT@民工 阅读(181) 评论(0) 推荐(0) 编辑

导航