原型模式就是对本身进行克隆。克隆完成后,各自独立,互不影响。 原型类: #include "StdAfx.h" #include "Prototype.h" Prototype::Prototype(void) : m_age(0)