-
[综合] C#系列-超市银行系统
Acer.cs usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks;namespace_16超市收银系统 {classAcer:Pr...
0
热度 -
30
热度 -
[综合] C++ 单链表数据操作
/**此程序演示带头结点的单链表的实现,数据元素是整数。 */ #include<stdio.h> #include<string.h> #include<stdlib.h>typedefintElemType;//自定义链表的数据元素为整数。typedefstr...
86
热度 -
[综合] C、C++、C#、python、java编程—时间与日期操作
C资料:菜鸟教程C语言中文网C++community C++资料:菜鸟教程cplusplusC++community C#资料:菜鸟教程microsoftC#文档 python资料:菜鸟教程python标准库 Java资料:菜鸟教程JavaSESpecificationsJavadocument (...
35
热度 -
[综合] 深入理解数据结构——模拟链表
#include<iostream> #include<string>usingnamespacestd;typedefintEtype;//自定义链表的数据元素为整数。 //定义数据元素节点结构 typedefstructSimNode {Etypedata;//存放结点的...
81
热度 -
[综合] 深入理解数据结构——链表应用
#include<iostream> #include<string>usingnamespacestd;typedefintEtype;//自定义链表的数据元素为整数。 //定义数据元素节点结构 typedefstructChainNode {Etypedata;//存放结...
66
热度 -
[综合] 深入理解数据结构——堆栈的基本操作
#include<iostream> #include<string>usingnamespacestd;typedefintEtype;//顺序存储堆栈 structStack{Etype*element;inttop;intmaxsize; };//创建空堆栈 voidC...
95
热度 -
[综合] 深入理解数据结构——链式堆栈的基本操作
#include<iostream> #include<string>usingnamespacestd;typedefintEtype;//定义堆栈数据类型 structStackNode{Etypedata;StackNode*next;//指向下一个Node };typ...
97
热度 -
[综合] 深入理解数据结构——堆栈应用(括号匹配)
#include<iostream> #include<string>usingnamespacestd;typedefcharEtype;//顺序存储堆栈 structStack{Etype*element;inttop;intmaxsize; };//创建空堆栈 void...
31
热度 -
[综合] 深入理解数据结构——堆栈应用(背包体积)
#include<iostream> #include<string>usingnamespacestd;typedefcharEtype;/************************背包问题*************************/ #definePRODU...
87
热度 -
[综合] 深入理解数据结构——堆栈应用(四染色算法)
#include<iostream> #include<string>usingnamespacestd;typedefcharEtype;/************************四染色算法*************************/ #definePROD...
12
热度 -
[综合] 深入理解数据结构——队列顺序存储
#include<iostream> #include<string>usingnamespacestd;typedefintEType;//自定义链表的数据元素为整数。 //定义队列顺序存储结构 structQueue {EType*element;//存放结点的数据元素。...
0
热度 -
[综合] 深入理解数据结构——列车重排算法
#include<iostream> #include<string>usingnamespacestd;typedefintEType;//自定义链表的数据元素为整数。structQType{intnumber; }; //定义队列顺序存储结构 structQueue {Q...
87
热度 -
[综合] 深入理解数据结构——划分子集算法
#include<iostream> #include<string>usingnamespacestd;typedefintEType;//自定义链表的数据元素为整数。//定义队列顺序存储结构 structQueue {QType*element;//存放结点的数据元素。i...
19
热度 -
[综合] 深入理解数据结构——二叉树基本操作
#include<iostream> #include<string>usingnamespacestd;typedefcharEType;structBinaryTreeNode{ETypedata;BinaryTreeNode*LChird;//左孩地址BinaryTre...
44
热度 -
[综合] 深入理解数据结构——二叉树线索树基本操作
#include<iostream> #include<string>usingnamespacestd;typedefcharEType;structBinaryTreeNode{ETypedata;BinaryTreeNode*LChird;//左孩地址boolLflag...
96
热度 -
[综合] 深入理解数据结构——二叉树应用
#include<iostream> #include<string>usingnamespacestd;typedefcharEtype; structEType{Etypekey; };structBinaryTreeNode{ETypedata;BinaryTreeNo...
82
热度 -
[综合] 深入理解数据结构——哈夫曼树
#include<iostream> #include<string>usingnamespacestd;typedefcharEType; 利用链表实现:哈夫曼树中的节点结构定义为 //structHuffmanNode{ // intweight;//权值 // ETyp...
41
热度 -
[综合] 深入理解数据结构——图
#include<iostream> #include<string> usingnamespacestd;structGraph{int**data;intvertex_num;//顶点数量intedge_num;//边数 };//基于邻接矩阵表示的有向带权图的建立算法vo...
8
热度 -
[综合] 深入理解数据结构——关键路径算法AOE
#include<iostream> #include<string> usingnamespacestd;//邻接表的实现typedefintInfoType;structAdjNode{intanother_vertex;//该条边另一个顶点在表头节点数组中的下标Info...
87
热度