摘要:1 #include 2 #include 3 typedef int ElemType; 4 //结点结构体 5 typedef struct node{ 6 ElemType data; 7 struct node *next; 8 }LinkQueueNode; 9 //头结点的前一个节点 10 typedef struct Node{ 11 ...
阅读全文
摘要:这是我做的一个简单的双向循环链表。 在双向循环链表当中最重要的是对四个指针的控制,其它地方与之前学的无异。
阅读全文
摘要:1 #include 2 #include 3 #define MAXSIZE 5 4 5 typedef int ElemType; 6 //队列结构体 7 typedef struct{ 8 ElemType data[MAXSIZE]; 9 int front,rear;//队头与队尾指针 (实际就是两个变量) 10 }SqQueu...
阅读全文
摘要:1 #include 2 #include 3 #include 4 typedef int ElemType; 5 /*链栈结点*/ 6 typedef struct Node{ 7 ElemType data; 8 struct Node *next; 9 }LinkStackNode; 10 /*链栈结构*/ 11 ty...
阅读全文