![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈与队列
yue_luo_
这个作者很懒,什么都没留下…
展开
-
2131数据结构实验之栈一:进制转换
数据结构实验之栈一:进制转换#include<cstdio>#include<cstdlib>#include<iostream>#define stackmax 100000#define stacknum 100000int x;typedef int Elemtype;typedef struct{ Elemtype *top; Elemtype *base原创 2016-10-08 21:48:33 · 262 阅读 · 0 评论 -
1252 进制转换
进制转换#include<cstdio>#include<cstdlib>#include<iostream>#define stackmax 100000#define stacknum 100000int x;typedef int Elemtype;typedef struct{ Elemtype *top; Elemtype *base; int原创 2016-10-27 16:38:34 · 308 阅读 · 0 评论 -
3335 数据结构实验之栈八:栈的基本操作
数据结构实验之栈八:栈的基本操作#include<cstdlib>#include<iostream>#include<cstdio>#include<stdio.h>using namespace std;typedef int ET;typedef struct{ int *top; int *base; int stacksize;}stack;int原创 2016-10-27 16:35:28 · 8065 阅读 · 0 评论 -
3334 数据结构实验之栈七:出栈序列判定
数据结构实验之栈七:出栈序列判定#include <iostream> #include <stdlib.h> using namespace std; int main() { int a[100000], b[100000], Stack[100000], n, t; cin >> n; for(int i = 0; i < n; i++)原创 2016-10-27 16:31:46 · 243 阅读 · 0 评论 -
3333 数据结构实验之栈六:下一较大值(二)
数据结构实验之栈六:下一较大值(二)#include<cstdio>#include<cstdlib>#include<iostream>#include<cstring>#define stackmax 110000#define stacknum 110000typedef struct{ int data; int id; int next;}node;typ原创 2016-10-27 16:29:14 · 237 阅读 · 0 评论 -
3332 数据结构实验之栈五:下一较大值(一)
数据结构实验之栈五:下一较大值(一)#include<cstdio>#include<cstdlib>#include<iostream>#include<cstring>#define stackmax 110000#define stacknum 110000int x,a[100001];typedef int Elemtype;typedef struct{ El原创 2016-10-27 16:28:25 · 367 阅读 · 0 评论 -
2134 数据结构实验之栈四:括号匹配
数据结构实验之栈四:括号匹配#include<stdio.h>#define maxsize 51struct stack{ char a[maxsize] ; int top ;}s ;int match(char c1, char c2){ if((c1=='{'&&c2=='}')||(c1=='('&&c2==')')||(c1=='['&&c2=='原创 2016-10-27 16:27:21 · 193 阅读 · 0 评论 -
2133 数据结构实验之栈三:后缀式求值
数据结构实验之栈三:后缀式求值#include<iostream> #include<algorithm> using namespace std; const int maxn=100000+10; typedef struct node { int *data; int top; int bottom; }Stack; Stack S;原创 2016-10-27 16:25:34 · 185 阅读 · 0 评论 -
2132 数据结构实验之栈二:一般算术表达式转换成后缀式
数据结构实验之栈二:一般算术表达式转换成后缀式#include<cstdlib> #include<iostream> #include<cstdio> #define stacknum 11111 #define stackmax 1111111 typedef char ET; typedef struct { ET *top; ET *ba原创 2016-10-27 16:19:59 · 211 阅读 · 0 评论 -
1479数据结构实验之栈:行编辑器
数据结构实验之栈:行编辑器#include<cstdio>#include<cstdlib>#include<iostream>#include<cstring>#define stackmax 100000#define stacknum 100000int x;typedef int Elemtype;typedef struct{ Elemtype *top;原创 2016-10-27 16:41:36 · 285 阅读 · 0 评论