会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
楼321
博客园
首页
新随笔
联系
订阅
管理
2019年6月11日
6.4数据结构
摘要: #include #define max 30 typedef struct{ char data[max]; int n; }betree; void creatbetree(betree &b,char a[],int c){ if(c6){ printf("叶子节点具体为:%c\n",b.data[c]); d++; ...
阅读全文
posted @ 2019-06-11 11:54 楼321
阅读(156)
评论(0)
推荐(0)
编辑
6.10 数据结构 HuffmanTree的代码参考
摘要: #include #define MAX 21 typedef struct { char data; int weig,parent,left,right; }huffn; typedef struct { char cd[MAX]; int start; }huffc; int main() { huffn ht[2*MAX]; huffc h...
阅读全文
posted @ 2019-06-11 11:52 楼321
阅读(192)
评论(0)
推荐(0)
编辑
6.10数据结构,堆的参考
摘要: #include typedef int KeyT; typedef int ElemType; typedef struct { KeyT key; ElemType data; }ST; void Sift(ST R[],int low,int high) //i=low.n=high { int i=low,j=2*i; ST t=R[i...
阅读全文
posted @ 2019-06-11 11:51 楼321
阅读(114)
评论(0)
推荐(0)
编辑
公告