![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构-----栈
黑脉金
这个作者很懒,什么都没留下…
展开
-
栈基本操作
#include #include #include #include using namespace std; typedef char ElemType; typedef struct node { ElemType data; struct node *next; } node,*LinkStack; typedef struct { node *top; } st原创 2017-10-27 15:06:42 · 217 阅读 · 0 评论 -
括号匹配的检验
括号匹配的检验 时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte 总提交:302 测试通过:197 描述 采用栈实现,练习进栈入栈函数的编写. 输入 输入的第一行包含一个数,n n表示要用例的个数 接下来是n行由括号构成的字符串,包含‘(’、‘)’、‘[’、‘]’。原创 2017-10-20 20:44:21 · 1481 阅读 · 0 评论