如何在c ++中计算互联网校验和 [英] how do I calculate internet checksum in c++

查看:86
本文介绍了如何在c ++中计算互联网校验和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何用c ++编写程序



接受字符串并将它们加4到4并将进位加到结果中如果结果> 1111加1

how can I write program in c++

that accept string and sum them 4 by 4 and add carry to result and if result >1111 add 1

推荐答案

首先,你的问题毫无意义。



其次,没有互联网校验和。你将不得不完全解释你的意思。



整个网络上有各种校验和功能。最常见的是CRC32。所有你要做的就是谷歌吧。
First, your question made no sense at all.

Second, there is no such thing as "internet checksum". You're going to have to explain exactly what you mean by this.

There are various implementations of checksum functions all over the web. The most common one is CRC32. All you have to do is Google for it.


这篇关于如何在c ++中计算互联网校验和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆