-
判断表达式括号匹配的算法
判断表达式括号匹配的算法 代码如下:#defineMAXSIZE100typedefcharELEMTYPE;typedefstruct{ELEMTYPEdata[MAXSIZE];inttop;}SQSTRACK;//定义顺序栈 intpipei(char*p){SQSTRACKl;SQSTRACK*s; intx=0;s=&l;s->top=-1;wh...
542
热度
上一页1下一页
判断表达式括号匹配的算法 代码如下:#defineMAXSIZE100typedefcharELEMTYPE;typedefstruct{ELEMTYPEdata[MAXSIZE];inttop;}SQSTRACK;//定义顺序栈 intpipei(char*p){SQSTRACKl;SQSTRACK*s; intx=0;s=&l;s->top=-1;wh...