亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? unit1.pas

?? crc任意位生成多項式 任意位運算 自適應(yīng)算法 循環(huán)冗余校驗碼(CRC
?? PAS
字號:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, jpeg, ExtCtrls, ImgList, IdBaseComponent, IdComponent,
  IdIPWatch;

type
  TForm1 = class(TForm)
    Edit1: TEdit;
    Edit2: TEdit;
    Memo1: TMemo;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Button1: TButton;
    ListBox1: TListBox;
    Button2: TButton;
    Memo2: TMemo;
    Edit3: TEdit;
    Button3: TButton;
    Button4: TButton;
    Button5: TButton;
    Label4: TLabel;
    Label5: TLabel;
    Label6: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Button4Click(Sender: TObject);
    procedure Button5Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

uses Unit2, Unit3;

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
type
 data=array[0..60] of Integer;
 data2=array[0..60,0..60] of Integer;
var
i,j,n,m,jinwei,l1,l2,zhongjian,l3:integer;
str,str2:string;
Gx:data2;
Mx,xx:data;
begin
    l1:=length(form1.Edit1.Text);
    l2:=length(form1.Edit2.Text);
    l3:=l1+l2;
    for i:=1 to l3-1 do
    begin     //       提取
        //x:=form1.edit1.TBDockHeight;
        //str:='whild'+'100';
        //str;=string(form1.Edit1);
        //showmessage('hennl');
        //form1.listbox1.
        //form1.listbox1.Items.Add(str);
        if i<=length(form1.Edit1.Text) then          //Gx付值
          begin
            if form1.Edit1.Text<>'' then
            begin
            str:=copy(form1.Edit1.Text,i,1);
              if (str='0')or (str='1') then
                begin
                  Gx[1,i]:=strtoint(copy(form1.Edit1.Text,i,1));
                  //str2:=str2+inttostr(Gx[1,i]);
                  //Str2:=str2+#13; {一行處理完成后,加上回車控制符}
                end
              else
                begin
                      showmessage('請輸入  傳輸碼元Mx');
                      exit;
                      Application.ProcessMessages;
                      //MessageBox('This   should   be   on   top.',   'Look',   mb_OK);
                      //break;

                end
            end
          end
        else
          begin
            Gx[1,i]:=0;
          end;
        if i<=length(form1.Edit2.Text) then           //Mx復(fù)制
          begin
              str:=copy(form1.Edit2.Text,i,1);
              if (copy(form1.Edit2.Text,1,1)='1') and (str='0')or (str='1')  then
                begin
                 Mx[i]:= strtoint (copy(form1.Edit2.Text,i,1));
                end
              else
                begin
                      showmessage('請輸入  生成多項式Gx');
                      exit;
                      Application.ProcessMessages;
                      //MessageBox('This   should   be   on   top.',   'Look',   mb_OK);
                      //break;
                end
          end;
        //form1.listbox1.Items.Add(inttostr(Gx[i]));          {打印}
        //Memo1.lines.text:=str2;
    end;

//計算//////////////////////////

for i:=1 to l2  do
    Gx[2,i]:=Gx[1,i];    //g(i+l1)=0;      %補齊了


i:=1;jinwei:=0;
while jinwei<=l1  do
begin
    j:=1;
    n:=1;
    xx[1]:=0;
    

  while j<l1+l2 do                          //%異或運算g(i+1,jinwei+j)=xor( g(i,jinwei+j),m(j));
   begin
    if j<=l2 then
        begin
        Gx[i+1,jinwei+j]:=Mx[j];               //%m負(fù)值
        //Gx[i+2,jinwei+j]:=xor(Gx[i,jinwei+j],Mx[j]);  //%異或
        if Gx[i,jinwei+j]<>Mx[j] then
          begin
            Gx[i+2,jinwei+j]:=1;
            xx[n]:=j;
            n:=n+1;
          end
        else
          begin
            Gx[i+2,jinwei+j]:=0;
          end
        end
    else
		if j+jinwei<=l1  then
        begin
          Gx[i+2,jinwei+j]:=Gx[1,jinwei+j];             //%g負(fù)值
        end;
     j:=j+1;
  end;



  j:=1;
 if xx[1]=0  then
   begin
     xx[1]:=l2+1;
     while   Gx[i+2,jinwei+j]=0 do
       begin
         jinwei:=jinwei+1;
       end;
   end
 else
 begin
     jinwei:=jinwei+xx[1]-1;
 end;

 i:=i+2;
end;




///////////////////////////////


///////////打印

for i:=1 to l1+l2+1 do {利用雙循環(huán)組織數(shù)組ary2的輸出串}
  Begin
      j:=1; n:=1;xx[1]:=0;
   {   for j:=1 to l1+l2-1 do
        begin
          if Gx[i,j]=1 then
            begin
              xx[n]:=j;
              n:=n+1;
            end;
          if xx[1]>l1-l2  then
            begin
              //break;   //跳出for循環(huán)
              //continue;//跳出單次循環(huán)
              exit;   //跳出整個函數(shù)
            end;
        end;}

    For j:=1 to l1+l2-1 do {內(nèi)循環(huán)完成一行上數(shù)據(jù)的輸出串處理}
      begin
      str2:=str2+inttostr(Gx[i,j]);
          if Gx[i,j]=1 then
            begin
              xx[n]:=j;
              n:=n+1;
            end;
          if xx[1]>l1  then
            begin
            //break;
            if l1>l2 then
              //break;   //跳出for循環(huán)
              //continue;//跳出單次循環(huán)
              //exit;   //跳出整個函數(shù)
            end;
    end;
    form1.listbox1.Items.Add(inttostr(xx[1]));
    
    //if (xx[1]=0)  then
    if (xx[1]=0) or (xx[1]>l1) then
      break;
    str2:=str2+#13; {一行處理完成后,加上回車控制符}
    End;
  str2:=str2+'    此行后'+inttostr(l2-1)+'即為校驗位';
  Memo1.lines.text:=str2; {在memo1顯示ary2數(shù)組的內(nèi)容}
  Showmessage(str2);
    {if xx[1]>l1-l2  then
        begin
          break;   //跳出for循環(huán)
        end;}
End;

procedure TForm1.Button2Click(Sender: TObject);
type
 data=array[0..40] of Integer;
 data2=array[0..40,0..40] of Integer;
var
i,j,n,m,jinwei,l1,l2,zhongjian,l3:integer;
str,str2:string;
Gx:data2;
Mx,xx:data;
begin
    l1:=length(form1.Edit1.Text);
    l2:=length(form1.Edit2.Text);
    l3:=l1+l2;
    for i:=1 to l3 do
    begin     //       提取
        //x:=form1.edit1.TBDockHeight;
        //str:='whild'+'100';
        //str;=string(form1.Edit1);
        //showmessage('hennl');
        //form1.listbox1.
        //form1.listbox1.Items.Add(str);
        if  (i<=length(form1.Edit3.Text)) then          //Gx付值
          begin
            if form1.Edit1.Text<>'' then
             begin
            str:=copy(form1.Edit3.Text,i,1);
              if (length(form1.Edit3.Text)=l3-1) and ((str='0') or (str='1')) then
                begin
                  Gx[1,i]:=strtoint(copy(form1.Edit3.Text,i,1));
                  //str2:=str2+inttostr(Gx[1,i]);
                  //Str2:=str2+#13; {一行處理完成后,加上回車控制符}
                end
              else
                begin
                      showmessage('位數(shù)不對 請輸入實收數(shù)據(jù)');
                      exit;
                      Application.ProcessMessages;
                      //MessageBox('This   should   be   on   top.',   'Look',   mb_OK);
                      //break;

                end;
            end;
          end
        else
          begin

            //showmessage(copy(form1.Edit3.Text,i,1));
 {           str:=copy(form1.Edit3.Text,i,1);
              if (length(form1.Edit3.Text)=length(form1.Edit2.Text)-1) and not(str='0') or (str='1') then
                begin
                  Gx[1,i]:=strtoint(copy(form1.Edit3.Text,i-l1,1));
                  //str2:=str2+inttostr(Gx[1,i]);
                  //Str2:=str2+#13; {一行處理完成后,加上回車控制符}
 {               end
              else
                begin
                      showmessage('校驗馬有誤');
                      exit;
                      //Application.ProcessMessages;
                      //MessageBox('This   should   be   on   top.',   'Look',   mb_OK);
                      //break;
                end    }
          end;
        if i<=length(form1.Edit2.Text) then           //Mx復(fù)制
          begin
              str:=copy(form1.Edit2.Text,i,1);
              if (copy(form1.Edit2.Text,1,1)='1') and (str='0')or (str='1')  then
                begin
                 Mx[i]:= strtoint (copy(form1.Edit2.Text,i,1));
                end
              else
                begin
                      showmessage('請輸入  生成多項式Mx');
                      exit;
                      Application.ProcessMessages;
                      //MessageBox('This   should   be   on   top.',   'Look',   mb_OK);
                      //break;
                end
          end;
        //form1.listbox1.Items.Add(inttostr(Gx[i]));          {打印}
        //Memo1.lines.text:=str2;
    end;

//計算//////////////////////////

for i:=1 to l2  do
    Gx[2,i]:=Gx[1,i];    //g(i+l1)=0;      %補齊了


i:=1;jinwei:=0;
while jinwei<=l1  do
begin
    j:=1;
    n:=1;
    xx[1]:=0;
    

  while j<l1+l2 do                          //%異或運算g(i+1,jinwei+j)=xor( g(i,jinwei+j),m(j));
   begin
    if j<=l2 then
        begin
        Gx[i+1,jinwei+j]:=Mx[j];               //%m負(fù)值
        //Gx[i+2,jinwei+j]:=xor(Gx[i,jinwei+j],Mx[j]);  //%異或
        if Gx[i,jinwei+j]<>Mx[j] then
          begin
            Gx[i+2,jinwei+j]:=1;
            xx[n]:=j;
            n:=n+1;
          end
        else
          begin
            Gx[i+2,jinwei+j]:=0;
          end
        end
    else
		  if j+jinwei<=l3  then
        begin
          Gx[i+2,jinwei+j]:=Gx[1,jinwei+j];             //%g負(fù)值
        end;
     j:=j+1;
  end;



  j:=1;
 if xx[1]=0  then
   begin
     xx[1]:=l2+1;
     while   Gx[i+2,jinwei+j]=0 do
       begin
         jinwei:=jinwei+1;
       end;
   end
 else
 begin
     jinwei:=jinwei+xx[1]-1;
 end;

 i:=i+2;
end;




///////////////////////////////


///////////打印

for i:=1 to l1+l2+2 do {利用雙循環(huán)組織數(shù)組ary2的輸出串}
  Begin
      j:=1;xx[1]:=0;n:=1;
   {   for j:=1 to l1+l2-1 do
        begin
          if Gx[i,j]=1 then
            begin
              xx[n]:=j;
              n:=n+1;
            end;
          if xx[1]>l1-l2  then
            begin
              //break;   //跳出for循環(huán)
              //continue;//跳出單次循環(huán)
              exit;   //跳出整個函數(shù)
            end;
        end;}

    For j:=1 to l1+l2-1 do {內(nèi)循環(huán)完成一行上數(shù)據(jù)的輸出串處理}
     begin
      str2:=str2+inttostr(Gx[i,j]);
          if Gx[i-1,j]<>Gx[i-2,j] then
            begin
              xx[n]:=j;
              n:=n+1;
              //break;
            end
          else
            xx[l1+l2]:=xx[l1+l2]+1;

          if xx[1]>l1  then
            begin
              //break;
            if l1>l2 then
              //break;   //跳出for循環(huán)
              //continue;//跳出單次循環(huán)
              //exit;   //跳出整個函數(shù)
            end;

    end;
    form1.listbox1.Items.Add(inttostr(xx[l1+l2]));

    //if (xx[1]=0)  then
    if  xx[l1+l2]=l1+l2-1 then
      break;
    if  (xx[1]>l1) then
      break;
    ;str2:=str2+#13; {一行處理完成后,加上回車控制符}
    xx[l1+l2]:=0;
    End;
  str2:=str2+'    此行若為0,則校驗成功,數(shù)據(jù)傳輸沒出錯' ;
  Memo2.lines.text:=str2; {在memo1顯示ary2數(shù)組的內(nèi)容}
  Showmessage(str2);
    {if xx[1]>l1-l2  then
        begin
          break;   //跳出for循環(huán)
        end;}
End;

procedure TForm1.Button3Click(Sender: TObject);
begin
   Form2.Show;
end;

procedure TForm1.Button4Click(Sender: TObject);
begin
      Form1.close;
end;

procedure TForm1.Button5Click(Sender: TObject);
begin
         Form3.Show;
end;

end.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美日韩成人高清在线一区| 亚洲人成网站精品片在线观看 | 欧美va亚洲va在线观看蝴蝶网| 国模一区二区三区白浆| 综合在线观看色| 日韩视频免费观看高清完整版在线观看 | 成人看片黄a免费看在线| 一级日本不卡的影视| 欧美白人最猛性xxxxx69交| 97se亚洲国产综合自在线观| 热久久久久久久| 亚洲欧美区自拍先锋| 久久综合色综合88| 欧美日韩视频在线观看一区二区三区 | 最新国产の精品合集bt伙计| 日韩免费电影一区| 欧美在线影院一区二区| 国产成人自拍网| 美国十次综合导航| 亚洲免费在线视频| 国产精品五月天| 日韩免费性生活视频播放| 欧美在线观看18| 91香蕉视频mp4| 国产91清纯白嫩初高中在线观看 | 久久精品一区二区三区四区| 欧美日韩一本到| 91久久奴性调教| 91小视频在线观看| 国产成人夜色高潮福利影视| 毛片一区二区三区| 午夜激情一区二区| 亚洲图片自拍偷拍| 亚洲黄色av一区| 亚洲天堂福利av| 中文字幕一区二区日韩精品绯色| 精品免费一区二区三区| 欧美一区二区大片| 91精品国产丝袜白色高跟鞋| 在线观看亚洲a| 91久久香蕉国产日韩欧美9色| 风间由美中文字幕在线看视频国产欧美| 久久丁香综合五月国产三级网站| 日本怡春院一区二区| 亚洲国产精品一区二区www在线| 亚洲欧美日韩一区| 日韩伦理av电影| 一区二区三区在线观看欧美| 亚洲三级视频在线观看| 日韩美女精品在线| 亚洲三级免费电影| 一区二区欧美视频| 亚洲国产综合91精品麻豆| 亚洲一区免费视频| 亚洲综合无码一区二区| 亚洲香肠在线观看| 日日摸夜夜添夜夜添国产精品 | 国产乱一区二区| 国产激情精品久久久第一区二区 | 一区二区在线观看不卡| 一区二区三区不卡在线观看| 亚洲国产精品久久久久秋霞影院| 午夜视频在线观看一区二区三区| 婷婷综合久久一区二区三区| 免费看日韩a级影片| 久久99国产精品久久| 国产精品一区二区在线观看不卡| 丰满白嫩尤物一区二区| 99久久精品国产一区二区三区| 色婷婷亚洲精品| 欧美日韩国产片| 欧美www视频| 国产精品久久影院| 亚洲精品一二三四区| 偷拍日韩校园综合在线| 韩国三级电影一区二区| www.欧美色图| 欧美日韩成人在线| 久久先锋影音av| 亚洲天堂2014| 男人的j进女人的j一区| 国产精品亚洲一区二区三区妖精| av资源站一区| 欧美精品v国产精品v日韩精品| 欧美tickling挠脚心丨vk| 国产欧美日韩三级| 亚洲无线码一区二区三区| 捆绑紧缚一区二区三区视频| a亚洲天堂av| 欧美一区二区成人| 中文字幕中文字幕一区二区| 亚洲成人1区2区| 国产电影精品久久禁18| 在线看国产日韩| 久久综合国产精品| 亚洲一区二区三区激情| 国产精选一区二区三区| 91久久一区二区| 久久久九九九九| 亚洲成人7777| 成人激情午夜影院| 日韩欧美国产综合一区| 综合亚洲深深色噜噜狠狠网站| 老司机午夜精品99久久| 色婷婷久久久综合中文字幕| 制服.丝袜.亚洲.中文.综合| 中文字幕一区二区三区蜜月 | 日韩欧美二区三区| 亚洲视频一二三区| 国产精品一二三在| 欧美福利视频导航| 亚洲精品视频自拍| 成人免费电影视频| 欧美大尺度电影在线| 亚洲一区二区三区四区的| 国产精品一级片| 精品国产亚洲在线| 日日摸夜夜添夜夜添国产精品 | 成人免费观看av| 欧美成人一区二区| 爽好多水快深点欧美视频| 91麻豆视频网站| 国产精品久久久久永久免费观看 | 99久久婷婷国产综合精品电影| 欧美一三区三区四区免费在线看| 亚洲男女毛片无遮挡| 成人午夜在线免费| 久久久综合激的五月天| 美女视频一区二区| 在线电影欧美成精品| 樱桃视频在线观看一区| aa级大片欧美| 国产精品免费aⅴ片在线观看| 国产一区二区三区久久久| 欧美一级高清片在线观看| 亚洲国产一区视频| 在线亚洲高清视频| 一区二区三区四区视频精品免费| 99热99精品| 亚洲人成亚洲人成在线观看图片| voyeur盗摄精品| 最近日韩中文字幕| 色中色一区二区| 一区二区三区日韩精品视频| 91亚洲国产成人精品一区二区三 | 国产一区二区三区四区在线观看| 日韩午夜在线观看视频| 青青青爽久久午夜综合久久午夜| 欧美日韩国产一级| 日日摸夜夜添夜夜添亚洲女人| 欧美日韩国产成人在线免费| 亚洲va欧美va天堂v国产综合| 欧美三级在线视频| 亚洲va欧美va国产va天堂影院| 欧美日韩国产成人在线免费| 香蕉久久一区二区不卡无毒影院| 欧美日韩国产一区二区三区地区| 午夜av电影一区| 日韩欧美国产一区二区在线播放| 精品在线一区二区三区| 久久久久久9999| 99久久精品免费看国产| 亚洲国产一二三| 制服丝袜成人动漫| 国产剧情在线观看一区二区| 国产精品欧美精品| 在线一区二区三区四区五区| 亚洲高清视频的网址| 欧美一级黄色片| 国产成人在线观看免费网站| 亚洲色图都市小说| 欧美日韩一本到| 国产一二三精品| 国产精品久久一卡二卡| 欧美性极品少妇| 久久黄色级2电影| 欧美精彩视频一区二区三区| proumb性欧美在线观看| 亚洲动漫第一页| 久久亚洲精品国产精品紫薇| 99这里都是精品| 天天av天天翘天天综合网| 久久午夜国产精品| 一本到不卡免费一区二区| 丝袜美腿成人在线| 中文子幕无线码一区tr| 欧美视频一区二区在线观看| 精品一区二区久久| 一区二区三区四区国产精品| 日韩欧美一区中文| 99国产精品久| 精品一区二区三区的国产在线播放| 国产精品你懂的| 3atv在线一区二区三区| 成人永久aaa| 日本不卡在线视频| 日韩理论在线观看| 欧美精品一区二| 欧美日韩亚州综合| www.爱久久.com|