栈的应用之银行叫号系统模拟
摘要:#include #define STACKSIZE 110 #define TRUE 1 #define FALSE 0 typedef int ElemType; typedef int Status; typedef struct { ElemType data[STACKSIZE]; int top; int rear; } SeqQueue; Sta...
阅读全文
posted @
2016-10-20 20:14
不忧尘世不忧心
阅读(364)
推荐(0)
栈的应用之括号匹配
摘要:#include #include #define MAXSIZE 110 #define TRUE 1 #define FALSE 0 typedef char ElemType; typedef int Status; typedef struct { ElemType data[MAXSIZE]; int top; }SeqStack; void InitStack(S...
阅读全文
posted @
2016-10-20 19:35
不忧尘世不忧心
阅读(221)
推荐(0)
栈的应用之数制转换
摘要:#include #define STACKSIZE 110 #define OK 1 #define TRUE 1 #define FALSE 0 int flag; typedef int ElemType; typedef int Status; typedef struct { ElemType data[STACKSIZE]; int top; }SeqStack; ...
阅读全文
posted @
2016-10-20 11:12
不忧尘世不忧心
阅读(382)
推荐(0)
线性结构 一元多项式的乘法与加法运算
摘要:#include #include typedef struct Polynode *Polynomial; struct Polynode { int coef; int expon; Polynomial link; }; void PrintPoly(Polynomial P) { int flag = 0; if(!P) ...
阅读全文
posted @
2016-10-10 19:50
不忧尘世不忧心
阅读(289)
推荐(0)
Checkpoints codeforces 709B
摘要:http://codeforces.com/problemset/problem/709/B 题意:给出一条横向坐标轴,给出Vasya所在的坐标位置及其另外n个坐标。Vasya想要至少访问n-1个位置,问最短所需要走的距离为多少? #include <stdio.h> #include <stdli
阅读全文
posted @
2016-10-10 17:49
不忧尘世不忧心
阅读(186)
推荐(0)