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