自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 实验六

#include<iostream> using namespace std; template<class T> struct BiNode { T data; BiNode<T> *lchild,*rchild; }; template<class T> class BiTree { public: BiTree(){ ...

2018-05-31 13:25:09 236

原创 实验五

# ifndef Bitree_H # define Bitree_H struct BiNode { char data; BiNode *lchild,*rchild; }; class Bitree { public: Bitree(){root=Creat(root);} ~Bitree(){Release(root);} void PreOrder()...

2018-05-24 11:46:51 256

原创 实验四

#ifndef Tree_H #define Tree_H const int MaxSize=100; class Tree { public: Tree(){length=0;} void CreateTree(); void Message(int x); void Leave...

2018-05-18 23:35:02 195

原创 实验三间接寻址

#include <iostream> using namespace std; const int N=5; class Student{ private: int *scores[N]; int length; public: Student(int score[],int n); ~Student(){} ...

2018-05-10 13:21:19 190

原创 实验三静态链表

#include <iostream> using namespace std; const int N=100; struct Std{ int date; int next; }score[N]; class Student{ private: static int first; static int avai...

2018-05-10 13:19:16 129

原创 实验三双链表

#include <iostream> using namespace std; const int N = 5; struct Std { int date; Std *next,*prior; }*p, *r; class Student { private: Std * first; int length; ...

2018-05-10 13:16:47 163

原创 实验三单链表

#include <iostream> using namespace std; const int N=5; struct Std{ int date; Std *next; }*p,*r; class Student{ private: Std *first; int length; public: ...

2018-05-10 13:11:47 170

原创 实验三顺序表

#include <iostream> using namespace std; const int N=5; class Student{ private: int scores[N]; int length; public: Student(int score[],int n); ~Student(){} ...

2018-05-10 11:36:12 198

原创 实验二将十进制数转化为二进制

#include<iostream> using namespace std; void change(int n) { int c[100]={0},count; count=0; for(int i=0;n>0;i++) { c[i]=n%2; n=n/2; count++; } cout<<"将该数转化为2进制"; for(int j=...

2018-04-27 00:12:06 371

原创 实验二顺序队列

#include<iostream> using namespace std; const int QueueSize=100; class CirQueue { public: CirQueue(){front=rear=QueueSize-1;} ~CirQueue(){} void EnQueue(int x); int DeQueue(); int GetQueue(...

2018-04-26 23:59:12 145

原创 实验二链栈

#include<iostream> using namespace std; struct Node { int data; struct Node*next; }; class LinkStack { public: LinkStack(){top=NULL;} ~LinkStack(); void Push(int x); int Pop(); i...

2018-04-26 23:32:50 131

原创 实验二链队列

#include<iostream>using namespace std;template<class DataType>struct Node{ DataType data; Node<DataType>*next;};template<class DataType>class LinkQueue{ Node<DataType>*fr...

2018-04-26 21:18:38 201

原创 实验二顺序栈

#include<iostream> using namespace std; const int StackSize=10; template<class DataType> class SeqStack { public: SeqStack(){top=-1;} ~SeqStack(){} void Push(DataType x); DataType Po...

2018-04-26 19:50:38 162

原创 信管117237卓嘉健数据结构实验一

#ifndef SeqList_H #define SeqList_H const int MaxSize=10; class SeqList { public: SeqList(){length=0;} SeqList(int a[],int n); ~SeqList(){} void Insert(int i,int x); int Delete(int i); int ...

2018-04-01 20:53:53 180

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除