信息论与编码实验报告
} cout<<huffcode[i].sign<<":"; for(j=temp.position+1;j<n;j++) { //输出码字 huffcode[i].bit[j]=temp.bit[j]; cout<<temp.bit[j]; } cout<<endl; }
delete[] huffcode; delete[] huffnode; }
哈弗曼编码的实验结果截图:
信息论与编码实验报告
} cout<<huffcode[i].sign<<":"; for(j=temp.position+1;j<n;j++) { //输出码字 huffcode[i].bit[j]=temp.bit[j]; cout<<temp.bit[j]; } cout<<endl; }
delete[] huffcode; delete[] huffnode; }
哈弗曼编码的实验结果截图:
下一篇:防火检查记录表