对括号进行左右匹配,对应的,可运行typedef struct { int *base; int *top; int stacksize; }SqStack; int InitStack(SqStack *S) { S->base=(int *)malloc(STACK_INIT_SIZE*sizeof(int)); if(!S->base) { printf("\n磁盘不足.\n"); getch(); exit(ERROR); } S->top=S->base; S->stacksize=STACK_INIT_SIZE; return 1; } S->stacksize=STACK_INIT_SIZE; return 1; }