摘要: #include <iostream>using namespace std;class ProtoType{public: ProtoType(){} virtual ~ProtoType(){} virtual ProtoType* Clone() = 0;};class ConcreteClass1 : public ProtoType{public: int field1; int field2;public: ConcreteClass1() : field1(0) , field2(0) { ... 阅读全文
posted @ 2013-03-19 10:03 特洛伊人 阅读(315) 评论(0) 推荐(0) 编辑