顺序队列的出栈与入栈

#include<iostream> #include<stdlib.h> #include<malloc.h> #define STACK_INIT_SIZE 100 #define STACKINCREMENT 10 using namespace std; struct sqstack { int *base; int *top; int stacksize; }; int Initstack(sqstack &amp;s) { s.base = (int*)malloc(STACK_INIT_SIZE*sizeof(int));...
2013-01-02 16:04 | 阅读 818 次 | 评论 0 条
文章分类
文章归档
最新评论