
栈
KingsCC
这个作者很懒,什么都没留下…
展开
-
九度26 括号匹配问题
//从左向右将(压入栈,遇到)则将栈顶匹配给它,由于栈的特性相当于从内向外匹配 #include <iostream> #include <algorithm> #include<string> #include<stack> using namespace std; stack<int> s; char str[101]; char...原创 2018-08-14 18:28:04 · 191 阅读 · 0 评论 -
九度 27 简单计算器 栈
不知道为啥这个会报错deque iterator not dereferencable #include <iostream> #include <algorithm> #include<string> #include<stack> using namespace std; char str[210]; int prio[5][5] = { ...转载 2018-08-14 21:27:09 · 278 阅读 · 0 评论