摘要:#include<iostream>using namespace std;#define MaxSize 10 typedef struct{ char data[MaxSize]; int top;}SqStack;void InitStack(SqStack& S);bool IsEmpty(
阅读全文
摘要:#include<iostream>using namespace std; typedef int Elemtype;typedef struct LinkNode{ Elemtype data; struct LinkNode* next;}linkNode;typedef struct{ Li
阅读全文
摘要:#include<iostream>using namespace std;#define MAXSize 10typedef int Elemtype; typedef struct{ Elemtype data[MAXSize]; int front, rear;}SqQueue;bool Is
阅读全文
摘要:#include <iostream>using namespace std; typedef int ElemType; typedef struct Linknode{ ElemType data; struct Linknode* next;}*LiStack; LiStack initLiS
阅读全文
摘要:#include <iostream>using namespace std; typedef int ElemType; // 单链表的存储结构typedef struct LNode{ ElemType data; struct LNode* next;} LNode, * LinkList;
阅读全文