随笔分类 - 数据结构
摘要:#include <iostream> using namespace std; struct Node//定义双向链表,方便降幂输出 { int C; int index; struct Node*prior; struct Node*next; }; void init(struct Node*
阅读全文
摘要:#include<iostream> using namespace std; #define MaxInt 32767 #define MVNum 100 int i,j,k; typedef struct { char vexs[MVNum];//顶点表 int arcs[MVNum][MVNu
阅读全文
摘要:#include<iostream.h> #include<stdlib.h> #include<math.h> #define MAXSIZE 20 #define ERROR 0 #define OVERFLOW 0 #define OK 1 typedef int SElemType; typ
阅读全文
摘要:#include<iostream> using namespace std; typedef struct Node{ char data; struct Node *lchild,*rchi ld; }BTreeNode,*BTree; void InitBT(BTree &BT)//初始化二叉
阅读全文
摘要:#include<iostream.h> #define null 0; #define OK 1; #define ERROR 0; typedef int Status; typedef struct Node{//定义单链表存储结构 int data; struct Node *next; }
阅读全文
摘要:#include<iostream.h> #include<stdlib.h> #define max 20 typedef struct{//储存结构 int key; char other; }elemtype; typedef struct{ elemtype *elem; int lengt
阅读全文
摘要:数据,数据元素,数据项和数据对象 数据(Data)是客观事物的符号表示,是所有能输入到计算机中并被计算机程序处理的符号的总称. 数据元素(Data Element)是数据的基本单位,在计算机中通常作为一个整体进行考虑和处理.也称为元素,记录等.数据元素用于完整地描述一个对象,如一名学生的成绩记录.
阅读全文