n;float*w=newfloat[n];char**Hcode=newchar*[n];string*c=newstring[n];..." />
您的位置首页百科问答

哈夫曼编码的函数怎么写啊,只需要文件读取和字符识别部分,谢谢了,跪求

哈夫曼编码的函数怎么写啊,只需要文件读取和字符识别部分,谢谢了,跪求

的有关信息介绍如下:

哈夫曼编码的函数怎么写啊,只需要文件读取和字符识别部分,谢谢了,跪求

int main(){ cout<<"----输入------"<>n; float* w=new float[n]; char** Hcode=new char*[n]; string* c=new string[n];

for(int i=0; i>Hcode[i]>>w[i]; c[i] = Hcode [i]; } HuffmanCode(w,n,Hcode); cout<<"----输出------"

return 0;

}