2014年7月28日

摘要: 设计模式中 最基本的工厂模式感觉就是根据输入的类型决定选择何种类与进行何种操作。跟面向过程中输入1则执行func1();输入2则执行func2()基本一致的想法#include using namespace std;enum eShoeType{ leather = 0,rubber};class... 阅读全文
posted @ 2014-07-28 11:29 itdef 阅读(623) 评论(1) 推荐(0)

导航