#include<iostream>
using namespace std;
#define MaxSize 100
#define OK 1
#define ERROR 0
typedef int Status;
typedef struct
{
char *base;
char *top;
}SqStrack;
Status InitSq(SqStrack &S)
{
//创建栈
S.base =new char[MaxSize];
if(!S.base ) return ERROR;
S.top =S.base ;
return OK;
}
Status Push(SqStrack &S,char e)
{
</
括号匹配——PTA~DS
最新推荐文章于 2023-11-27 19:52:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)