算术编码(固定模式C语言)代码

时间:2014-07-05 12:56:20
【文件属性】:
文件名称:算术编码(固定模式C语言)代码
文件大小:2KB
文件格式:TXT
更新时间:2014-07-05 12:56:20
算术编码 C #include #include #include const double proc[]={0.10,0.10,0.10,0.1,0.1,0.1,0.1,0.1,0.15,0.05}; double result,areaBegin,areaEnd; int cord[1000],cordLength; char str[1000]; int strLength=0; bool readdat(){ printf("*********** 固定模式算术编码 ***********\n"); printf("请输入字符串(0--9): \n"); scanf("%s",str); while(str[strLength]!='\0') strLength++; for(int i=0;i'9' || str[i]<'0') return 1; return 0;。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。下载吧。。。

网友评论

  • 带我仔细研究学习,感谢分享