![](https://csdnimg.cn/release/download_crawler_static/86960699/bg3.jpg)
.
//printf("输入叶子的节点数:");
//scanf("%d",&n);
printf("字符数量=%d\n",n);
for(i=1;i<=2*n-1;i++)
{
}
j=0;
for(i=1;i<=n;i++)
{
/*getchar();
printf("输入第%d 个叶子节点的值:",i);
scanf("%c",&ht[i].data);
printf("输入该节点的权值:");
scanf("%d",&ht[i].weight);
*/
{
if(Coun[j]!=0)
{
ht[i].data=j;
//printf("%c",ht[i].data);
for(;j<127;j++)
ht[i].parent=ht[i].lch=ht[i].rch=0;
Word 文档