棧的遺留問題

問題一:括號匹配。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]
相關文章
相關標籤/搜索