c语言程序验证括号匹配问题在线等
c语言程序验证括号匹配问题在线等
日期:2007-12-06 15:58:56 人气:1
//你看看吧!能用了
//那就是你程序的逻辑有问题了,该你自己考虑了
#include
#include
#define m 20
typedef char Elemtype;
typedef struct
{
Elemtype stack[m];
int top;
}stacknode;
stacknode *sp;
void init(stacknode *st)
{
st->top=0;