摘要:
#include<iostream> using namespace std; int migo[7][7]={ {2, 2, 2, 2, 2, 2, 2}, {2, 0, 0, 0, 0, 0, 2}, {2, 0, 2, 0, 2, 0, 2}, {2, 0, 0, 0, 0, 2, 2}, { 阅读全文
摘要:
1.括号的匹配 #include<iostream> #include<stack> using namespace std; int check(string str){ stack<char> s; int len=str.length(); for(int i=0;i<len;i++){ ch 阅读全文