checksum = checksum ^ str[i];
这是进行校验得语句。
^ The bitwise-exclusive-OR operator compares each bit of its first operand to the corresponding bit of its second operand. If one bit is 0 and the other bit is 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0.
这是进行校验得语句。
^ The bitwise-exclusive-OR operator compares each bit of its first operand to the corresponding bit of its second operand. If one bit is 0 and the other bit is 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0.
解决方案 »
- 刚入职为什么公司的代码我都看不懂啊
- EDIT中获取光标的所在的行号和列号,在线等...........
- 我想实现:双击对话框的一定区域(比如说一个矩形框)来调用一个响应函数,各位有什么好思路吗?
- 麻烦大家帮我点一条学习C++的路。
- 如何在一个基于多文档的客户区添加按钮等控件?100分 谢谢!
- CSplitterWnd的问题
- 如何解析CVT100协议!急!
- 怎样在数据库中存储语音文件,请给出详细解决过程或源程序,急!!!!
- 用VC 能抓取会员区里面的网页么? 在线等待................
- 问题:为什么我在自己模板添加消息事件,却无法响应!
- 如何将删除的注册表项恢复????
- 简单问题请教:如何实现点击鼠标右键弹出快捷菜单?
在send的这一方一般是没有多大问题,
而在接收数据的另一方则要验证才进行(根据协议)具体的数据分析。