哈夫曼编、译码器(8)
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:
或QQ:
处理(尽可能给您提供完整文档),感谢您的支持与谅解。

数据结构课程设计报告
while((L.List [i]<123&&L.List [i]>96)||L.List [i]==32) { GetCode(L.List[i],L); i++;
}
}
template
void HuaffmanTree::DeCode(LinkList L) { int i=0;
while(!qu.IsEmpty ()) { HuaffmanTreeNode *current=this->GetRoot (); while(current->GetData ()=='0') { if(qu.DeQueue()==0) current=current->GetLchild();
else
current=current->GetRchild(); }
cout<GetData ();
}
}
template
void HuaffmanTree::GetCharFrenquency (LinkList L) { HuaffmanTreeNode *current=L.GetHead()->GetNext(); while(current) { if(current->GetData()!='0')
{cout<GetData()<<\ \<GetKey()<GetNext(); }
}
template
void HuaffmanTree::ShowPriorText(LinkList L) {
int i=0;
3
5 数据结构课程设计报告
while((L.List [i]<123&&L.List [i]>96)||L.List [i]==32) { cout< }
}
template
void HuaffmanTree::ShowNodeBit(LinkList L) { HuaffmanTreeNode *current=L.GetHead()->GetNext(); while(current) { if(current->GetData()!='0')
{cout<GetData ()<<\ \; GetCode(current->GetData(),L); cout< current=current->GetNext();
}
}
template
int HuaffmanTree::GetHeight(HuaffmanTreeNode *p) { if(!p) return 0; int hl,hr;
hl=GetHeight(p->GetLchild()); hr=GetHeight(p->GetRchild()); return hl>hr?++hl:++hr;
}
3
6
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库哈夫曼编、译码器(8)在线全文阅读。
哈夫曼编、译码器(8).doc
将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
下载失败或者文档不完整,请联系客服人员解决!