摘要:
#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... 阅读全文
摘要:
#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 < 阅读全文