- 博客(3)
- 收藏
- 关注
原创 用两个栈完成队列入队,出队,判空
#include <iostream> #include <stdio.h> #include <stdlib.h> #define maxsize 100 using namespace std; typedef struct { int elem[maxsize]; int top; }Sqstack; int Isempty(Sqsta...
2018-07-30 20:18:46 732
原创 求后缀式数值
#include <iostream> #include <stdio.h> #include <stdlib.h> #define maxsize 100 using namespace std; int OP(int a,char op,int b) { if(op=='+') return a+b; if(op=='-') return...
2018-07-29 19:41:47 365
原创 小括号的匹配
#include <iostream> #include <stdio.h> #include <stdlib.h> #define maxsize 100 using namespace std; int match(char A[],int n) { char stack[maxsize]; int count=0,top=-1,i; ...
2018-07-28 21:38:04 720
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人