文件名称:Checksum
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:7.34kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
校验和的计算过程主要分位三个步骤:数据文件的输入,校验和的计算和校验结果的输出。输入数据可能是以字符形式存储的 ,而校验和的计算则要采用数据形式,所以在从文件读取数据时,都要进行字符到数据的相互转换. 使用C++编程时直接使用16进制的方式打开输入文件。待校验的数据按16位位一个单位相加,采用端循环进位,最后对所得16位的数据取反码。因为待校验的数据时以字节方式分隔的 ,所以为了方便,将16位的数据分成高8位和 低8位处理。-Checksum calculation process is divided into bits of three steps: the input data file, the checksum calculation and verification results of the output. Input data may be stored in characters, and checksum calculation will have to use the data in the form, so read the data from the file, should be carried out to the data conversion between the character. Using C++ programming directly using 16 hex way to open the input file. The data to be verified by adding a flat 16-bit bit by bit into the side loop, the last 16 bits of data on income inversion code. Because the data to be verified by a byte-delimited, so for convenience, the 16-bit 8-bit data into high and low 8-bit processing.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Code/Checksum.cpp
Code/Checksum.dsp
Code/Checksum.dsw
Code/Checksum.ncb
Code/Checksum.opt
Code/Checksum.plg
Code
Code/Checksum.dsp
Code/Checksum.dsw
Code/Checksum.ncb
Code/Checksum.opt
Code/Checksum.plg
Code
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.