随笔分类 - 数据结构
摘要:1: #include <stdio.h> 2: #include <math.h> 3: #include <stdlib.h> 4: #define STACK_INIT_SIZE 20 5: #define STACKINCREMENT 10 6: 7: typedef int ElemType; 8: typedef struct { 9: ElemT...
阅读全文
摘要:1: #include "stdio.h" 2: 3: typedef struct BiTNode { 4: char data; /*结点的数据域*/ 5: struct BiTNode *lchild , *rchild; /*指向左孩子和右孩子*/ 6: } BiTNode , *BiTree; 7: 8: /*创建一棵二叉树*/ 9: void CreatBiTree(BiTree *...
阅读全文
摘要:1: #include <stdio.h> 2: #include <stdlib.h> 3: 4: typedef struct node { 5: int data; 6: int freq; 7: struct node *prior; 8: struct node *next; 9: } dbLNode, *dbLinkList; 10: 11: /*创建一个双向...
阅读全文

浙公网安备 33010602011771号