摘要: #include #include #include #define MaxQueueSize 100 // TODO: 在此处引用程序需要的其他头文件 struct Queue { int* base; int front;//队头指针 int rear;//队尾指针 }; //初始化队列 bool Init_Queue(Queue* q){ q->... 阅读全文
posted @ 2017-10-27 21:34 汪昕 阅读(566) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define StackSize 5 #define IncrementSize 5 // TODO: 在此处引用程序需要的其他头文件 struct Stack { int *base; int *top; int stacksize; }; //初始化栈 bool Init_Stack(Stack* s... 阅读全文
posted @ 2017-10-27 20:20 汪昕 阅读(2653) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include //创建一个节点,data为value,指向NULL Node* Create(int value){ Node* head = (Node*)malloc(sizeof(Node)); head->data = value; head->next = NULL; return head; } //销毁链... 阅读全文
posted @ 2017-10-27 11:26 汪昕 阅读(14623) 评论(0) 推荐(0) 编辑