資源簡(jiǎn)介
BCH(31,21)編碼 譯碼源程序。
實(shí)現(xiàn)方法及原理可參考:
http://blog.csdn.net/woijal520/article/details/6790204

代碼片段和文件信息
#include?“bch3121.h“
// 使用說明
// 1、打開main.cpp
// 2、按下F7(建立工作區(qū)和工程)
// 3、將bch3121.h和bch3121.cpp添加到工程,直接運(yùn)行程序即可
//
// Author : waitsha
// QQ : 507491840
// E-mail : woijal520@163.com
//
// 詳細(xì)可參考http://blog.csdn.net/woijal520/article/details/6790204
unsigned?long?test?=?0xa8a0a000;
unsigned?long?secret?=?0;
unsigned?long?text?=?0;?
int?main()
{
secret?=?BchEncode(test);
RevBit(secret20);
BchDecode(secret);
secret?=?BchEncode(test);
RevBit(secret16);
RevBit(secret17);
BchDecode(secret);
secret?=?BchEncode(test);
RevBit(secret16);
RevBit(secret17);
RevBit(secret18);
BchDecode(secret);
return?TRUE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????33792??2011-09-20?12:55??BCH3121\main.ncb
?????文件???????1165??2011-09-20?12:06??BCH3121\main.plg
?????文件???????2618??2011-09-20?11:55??BCH3121\BCH3121.H
?????文件???????5791??2011-09-20?12:02??BCH3121\BCH3121.CPP
?????文件????????127??2011-09-20?12:04??BCH3121\readme.txt
?????文件????????699??2011-09-20?12:59??BCH3121\main.cpp
?????文件??????49664??2011-09-20?12:55??BCH3121\main.opt
?????文件???????3503??2011-09-20?12:55??BCH3121\main.dsp
?????文件????????533??2011-09-20?12:55??BCH3121\main.dsw
?????目錄??????????0??2011-09-20?11:51??BCH3121
-----------?---------??----------?-----??----
????????????????97892????????????????????10
- 上一篇:宇視科技C語言面試題
- 下一篇:左手法則c語言程序
評(píng)論
共有 條評(píng)論