摘要: #include using namespace std; typedef struct StackNode *LinkStack; struct StackNode { int data; struct StackNode *next; }; LinkStack s; void InitStack(LinkStack &s) { s = NULL; } bool Sta... 阅读全文
posted @ 2019-10-04 19:12 Tomorrow1126 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #define maxsize 100 using namespace std; typedef struct { int *base; int *top; int stacksize; }SqStack; void InitStack(SqStack &s) { s.base = new int[maxsize]; if (!s.base) { cout < 阅读全文
posted @ 2019-10-04 18:58 Tomorrow1126 阅读(128) 评论(0) 推荐(0) 编辑