1、目标
对两个字节进行比较,统计变化位数、一位发生变化的位数、二位发生变化的位数、多位发生变化的位数。
2、代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ReverseStatisticsApp
{
public partial class Form1 : Form
{
//统计数据
int[] statisticsBits = new int[4];
/// <summary>
/// 构造函数
/// </summary>
public Form1()
{
InitializeComponent(