数据结构实验之栈与队列五:下一较大值(一) Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 对于包含n(1<=n<=1000)个整数的序列,对于序列中的每一元素,在序列中查找其位置之后第一个大于它的值,如果找到,输出所找 ...
分类:
其他好文 时间:
2018-08-16 22:25:22
阅读次数:
127
实验6 排序 实验6 排序 1 #include <iostream> 2 #include <stdio.h> 3 #include <stdlib.h> 4 #define INFINITY INT_MAX 5 #define MAXSIZE 100 6 7 using namespace st ...
分类:
其他好文 时间:
2018-08-14 20:00:12
阅读次数:
182
实验报告五 查找的相关操作 实验报告五 查找的相关操作 1 #include <iostream> 2 #include <stdio.h> 3 #include <stdlib.h> 4 #define INFINITY INT_MAX 5 #define MAXSIZE 20 6 7 using ...
分类:
其他好文 时间:
2018-08-14 19:57:00
阅读次数:
163
实验报告4 图的有关操作 无向网的创建、求度、深度遍历、广度遍历 实验报告4 图的有关操作 无向网的创建、求度、深度遍历、广度遍历 1 #include <iostream> 2 #include <stdlib.h> 3 #include <stdio.h> 4 #include <string> ...
分类:
其他好文 时间:
2018-08-14 19:52:31
阅读次数:
129
1 #include"stdio.h" 2 #include"malloc.h" 3 typedef int datatype; 4 5 #define MAXSIZE 50 //队列的最大容量 6 //定义队列结构体 7 typedef struct 8 { 9 datatype data[MAX... ...
分类:
其他好文 时间:
2018-07-02 20:19:43
阅读次数:
180
1 #include "stdio.h" 2 #include "iostream" 3 #include "stdlib.h" 4 #include "time.h" 5 6 const int size=1000; 7 typedef long RecType; 8 typedef struct... ...
分类:
其他好文 时间:
2018-07-02 20:16:58
阅读次数:
189
1 #include "stdio.h" 2 #include "malloc.h" 3 typedef int datatype; 4 typedef struct node //定义链式栈结构 5 { datatype data; 6 struct node *next; 7 }StackNod... ...
分类:
其他好文 时间:
2018-07-02 20:16:46
阅读次数:
197
1 #include "stdio.h" 2 #define MaxVertexNum 20 //定义图的最大顶点数 3 #define MaxEdgeNum 50 //定义图的最大边数 4 #define MaxValue 1000 //定义MaxValue为全局整型常量,作为无穷大 5 type... ...
分类:
其他好文 时间:
2018-07-02 20:16:04
阅读次数:
148
课程:程序设计与数据结构 班级:1723 姓名:段志轩 学号:20172304 实验老师:王志强 选修/必修:必修 实验内容 实验1: 两人一组结对编程: 参考http://www.cnblogs.com/rocedu/p/6766748.html SECDSA 结对实现中缀表达式转后缀表达式的功能 ...
分类:
其他好文 时间:
2018-06-20 00:56:07
阅读次数:
252