随笔 - 127,  文章 - 0,  评论 - 0,  阅读 - 25569
10 2016 档案
栈的应用之银行叫号系统模拟
摘要:#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) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(0)


< 2025年7月 >
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9
点击右上角即可分享
微信分享提示