摘要: 原型模式的C++实现 原型模式: 根据已有原型构造新对象 实现思路: 利用拷贝构造函数克隆自身 #include <iostream> using namespace std; class Prototype { public: Prototype() = default; Prototype(co 阅读全文
posted @ 2024-11-02 00:39 RunTimeErrors 阅读(4) 评论(0) 推荐(0) 编辑