#ifndef __MatchBrackets_H__#define __MatchBrackets_H__#define OK 0;#define ERROR 1;#define STACK_INIT_SIZE 100#define STACKINCREACE 10
typedef int ElemType;
typedef int Status;
typedef struct stack
{
ElemType *base;
ElemType *top;
int stacksize;
}Stack;
Status InitStack(Stack* S);
Status PushStack(Stack* S , ElemType e);
Status PopStack(Stack* S);
Status GetStackTop(Stack S);
int StackLength(Stack S);
Status StackTraverse(Stack S);
Status ClearStack(Stack* S);
Status DestroyStack(Stack* S);
Status StackEmpty(Stack S);
Status MatchBrackets(Stack *S,char *str);
#endif //__MatchBrackets_H__
MatchBrackets.h#ifndef __MatchBrackets_H__#define __MatchBrackets_H__#define OK 0;#define ERROR 1;#define STACK_INIT_SIZE 100#define STACKINCREACE 10typedef int ElemType;typedef int Status...