摘要: #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}, { 阅读全文
posted @ 2019-02-06 19:21 Hello_World2020 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-02-06 15:20 Hello_World2020 阅读(227) 评论(0) 推荐(1) 编辑