括号配对问题(用数组来模拟栈的思想)

给出一串字符串,里面只包含“[","(",")","]",判断字符串里面的括号是否正确配对, #include<iostream> #include<algorithm> using namespace std; char st1[1000]; int main() { int a,b,c,t,n,m; char ch,ch1,ch2; cin>>a; getchar(); while
相关文章
相关标签/搜索