資源簡介
海明碼和CRC校驗的C語言實現(xiàn)
1.海明碼
//code by zxf 2010.4.10
#include <stdio.h>
#include <conio.h>
#include <math.h>
//N代表待編碼數(shù)據(jù)的上限位數(shù)
#define N 100
int HmLength(int k);//計算海明碼校驗位位數(shù)
void InCode(char *data,char *c,int k,int r);//計算海明碼每個校驗位的數(shù)值
void main()
{
代碼片段和文件信息
- 上一篇:c語言編寫打字游戲
- 下一篇:httpproxy 代碼
評論
共有 條評論