各位大佬,帮忙看看到底是怎么错了。
是哈夫曼树建立,编码和编译。这一块代码:
for (int i=0;i<18;i++){
int j=Locate (L,c[i]);这一行报错
if(j>0){
L.A[j].num=1;
L.count++;
}
}
错误为:error:'c' was not declared in this scope
2021-12-04 17:21
2021-12-05 00:51
2021-12-06 08:12