Documents

All

Description
CN
Categories
Published
of 26
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Transcript
  IMPLEMENTATION OF CHECKSUM #include<stdio.h>#include<conio.h>#defne MAX 10#defne BIT 8int data[MAX][BIT];int n;void eceive! ;void sende! ;void ain! $clsc! ;%int&!'(n(t)*+),-M(n(n' ;%int&!'-ende side(n(n' ;sende! ;%int&!'(n///////////////(neceive side' ;eceive! ;etch! ;2void sende! $int i34;int ca560;%int&!'+nte nu7e o& d 7it data to 7e tansitted 9'3BIT ;scan&!'d'3:n ;&o!i60;i<n;i $%int&!'(n+nte dataod d 9 '3!i1 ;&o!460;4<BIT;4 $ i&!etche! 66=1= data[i][4]61; elsedata[i][4]60;22&o!i60;i<BIT;i data[n][i]60;&o!i60;i<n;i $ca560;&o!46BIT/1;4>60;4// $i&!!data[n][4]  data[i][4]  ca5 660 $ data[n][4]60; ca560;2else i&!!data[n][4]  data[i][4]  ca5 661 $data[n][4]61;  ca560;2else i&!!data[n][4]  data[i][4]  ca5 66 $data[n][4]60;ca561;2else$data[n][4]61;ca561;22i&!ca5661 $&o!46BIT/1;4>60;4// $i&!data[n][4]660 $data[n][4]61;7ea?;2elsedata[n][4]60;222@@1=s co%leent&o!i60;i<BIT;i i&!data[n][i]660 data[n][i]61;elsedata[n][i]60;%int&!'(n(nataod to 7e tansitted 9 (n' ;&o!i60;i<6n;i $%int&!'(n' ;&o!460;4<BIT;4 %int&!'d'3data[i][4] ;2%int&!'(t<// )hec?su(n' ;2void eceive! $int i34;int ca560;int su60;%int&!'(n(neceived ATA 9 (n' ;&o!i60;i<6n;i $  %int&!'(n' ;&o!460;4<BIT;4 %int&!'d'3data[i][4] ;2%int&!'(t<// )hec?su(n' ;&o!i60;i<n;i $ca560;&o!46BIT/1;4>60;4// $i&!!data[n][4]  data[i][4]  ca5 660 $ data[n][4]60; ca560;2else i&!!data[n][4]  data[i][4]  ca5 661 $data[n][4]61;ca560;2else i&!!data[n][4]  data[i][4]  ca5 66 $data[n][4]60;ca561;2else$data[n][4]61;ca561;22i&!ca5661 $&o!46BIT/1;4>60;4// $i&!data[n][4]660 $data[n][4]61;7ea?;2elsedata[n][4]60;222@@1=s co%leent&o!i60;i<BIT;i i&!data[n][i]660 data[n][i]61;elsedata[n][i]60;  %int&!'(ne chec?su 9 ' ;@@chec?in hethe su is Ceo o not&o!i60;i<BIT;i $%int&!'d'3data[n][i] ;su6data[n][i];2i&!su660 %int&!'(nata eceived success&ull5' ;else%int&!'(n+D in eceived data' ;2 OUTPUT :   IMPLEMENTATION OF CRC #include<stdio.h>#include<conio.h>#defne MAX E0int diviso[F];int ?3n;void encode!int []3 int [] ;
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks