摘要:
1.1 创建型模式 AbstractFactory ( 抽象工厂 ) FactoryMethod ( 工厂方法 ) Singleton ( 单态模式 ) Builder ( 建造者模式 ) Protot*pe * 原型模式 ) 1.1.1 工厂方法 适用性 参与者 类图 例子 product Con 阅读全文
摘要:
#include using namespace std; #define MAX 100 typedef struct { int date; int cur; }component, slink[100]; void init(slink L) { int i; L[MAX - 1].cur = 0;//最后一个节点,相当于是一个头节点,然后,将他指向下一个的下标设为0,也就类... 阅读全文