
数据结构
文章平均质量分 78
薛哥的博客
这个作者很懒,什么都没留下…
展开
-
建立学生成绩表,用顺序表、单链表、双链表、静态链表、间接寻址实现
#include<iostream>using namespace std;const int max=100; template<typename A>class seqlist{public: seqlist(); seqlist(Ascore[],int n); ~seqlist(){} voidinsert(i...原创 2018-05-03 19:05:14 · 346 阅读 · 0 评论 -
树和二叉树的实验 1
#include <iostream.h> #include <string.h> class BiTree{ private: char *bitree; int treelen; public: BiTree(char *a); ~BiTree(){} void LeverOrder(); void ...原创 2018-06-27 19:34:34 · 163 阅读 · 0 评论 -
树和二叉树的实验 2
#include<iostream.h>struct bnode{char data;bnode *lchild,*rchild,*parent;}; class btree{ bnode *root; //指向根结点的头指针 bnode *creat(bnode *bt); //被构造函数调用 void release(bnode ...转载 2018-06-27 20:13:11 · 207 阅读 · 0 评论 -
图实验
#include<iostream.h> const int Max = 10; template<class T> class MGraph { public: MGraph(T a[],int n,int e); //n个结点e条边的图 ~MGraph(){} void DFSTraverse(int v); //深度优...原创 2018-06-27 20:58:20 · 529 阅读 · 0 评论