
栈
查尔德77
努力改变自己
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Generalized Matrioshkas. poj 栈 POJ3195
Generalized Matrioshkas Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 1816 Accepted: 528 Description Vladimir worked for years making matrioshkas, thos原创 2014-07-15 20:55:34 · 651 阅读 · 0 评论 -
中缀表达式计算
#include using namespace std; struct num_strT{ int num; char s; bool status;//status ==0 represent s, else num; }; class screenC{ //用于接受后缀表达式 public: int total,status; num原创 2014-06-24 20:46:17 · 489 阅读 · 0 评论 -
栈来检测括号
左括号入栈,右括号就原创 2014-06-27 19:57:36 · 409 阅读 · 0 评论 -
中缀转前缀
#include #include #include using namespace std; struct num_strT { //0代表数字 1 代表字符 bool flag; int num; char str; }; class stack1 { public: char wait[1005]; int count;原创 2014-07-04 13:14:49 · 807 阅读 · 0 评论 -
UVA 括号匹配
Parentheses Balance You are given a string consisting of parentheses () and []. A string of this type is said to be correct: (a)if it is the empty string(b)if A and B are correct, AB is c原创 2014-07-13 21:46:47 · 495 阅读 · 0 评论