栈的遗留问题

问题一:括号匹配。web bool Match(char a[n]) { InitStack(S); //初始化栈 int i=0; while(a[i]!='\0') //未读到串尾时 { switch(a[i]) { case '(':push(S,a[i]);break; case '[':push(S,a[i]
相关文章
相关标签/搜索