摘要:
适用性 参与者 类图 例子 Target Adaptee Adapt*r Client result 1.2.2 桥接模式 适用性 参与者 类图 例子 Abstr*ction RefinedAbstraction Implemento* ConcreteImplemento* Test result 阅读全文
摘要:
#include using namespace std; typedef struct QNode { int data; struct QNode * next; }QNode,*QueuePtr; typedef struct { QueuePtr front; QueuePtr rear; }LinkQueue; bool init(LinkQueue & L) { ... 阅读全文
摘要:
#include using namespace std; #define STACK_INIT_SZIE 100 #define INCREAMENTSIZE 10 typedef struct { int * base, *top; int stacksize; }Stack; bool init(Stack & S) { S.base = (int *)malloc(STA... 阅读全文