摘要:
1 #include 2 using namespace std; 3 #define MAXSIZE 100 4 5 int Seq_Search(int *a, int n, int key) 6 { 7 int i; 8 for(i=0; ikey) 26 { 27 high--; 28 ... 阅读全文
摘要:
LinkQueue://链式队列#includeusing namespace std;typedef int elemType;struct QNode{ elemType data; QNode *next;};struct LinkQueue{ QNode *front; ... 阅读全文
摘要:
CycleStack//顺序循环队列#includeusing namespace std;typedef int elemType;const int MAXSIZE = 20;struct Queue{ elemType data[MAXSIZE]; int front;//头指针 ... 阅读全文
摘要:
LinkStack://链式栈#includeusing namespace std;typedef int elemType;typedef struct StackNode{ elemType data; StackNode *next;}*LinkList;struct LinkS... 阅读全文
摘要:
SeqStack: 阅读全文
摘要:
DuLink:#includeusing namespace std;typedef int elemType;typedef struct DulNode{ elemType data; DulNode *prior; DulNode *next;}*DuList;void In... 阅读全文
摘要:
LinkList:#includeusing namespace std;typedef int elemType;typedef struct Node{ elemType data; Node *next;}*LinkList;bool InitList(LinkList *L)//... 阅读全文