Location:
Search - mfile.r
Search list
Description: DESProcess
FILE *mfp,*cfp
int ttch=0,xorRes,ttbitdiff=0
char mch,cch
float bdiff=0
if((mfp=fopen(mfile,\"r\"))==NULL)
{cout<<\"Cannot open the file to compare\"<<endl }
if((cfp=fopen(cfile,\"r\"))==NULL)
{cout<<\"Cannot open the file to compare\"<<endl }
else
{
while(!feof(mfp)&!feof(cfp))
{
ttch++
mch=fgetc(mfp)
cch=fgetc(cfp)
xorRes=mch^cch
ttbitdiff+=(xorRes&1)+(xorRes&2)/2+(xorRes&4)/4+(xorRes&8)/8+(xorRes&16)/16+(xorRes&32)/32+(xorRes&64)/64+(xorRes&128)/128
}
bdiff=float(ttbitdiff)*100/float(ttch*8)
}
*bitdiff8byte=float(ttbitdiff)*100/float(8*8)
return bdiff
Platform: |
Size: 4914 |
Author: wxh |
Hits:
Description: DESProcess
FILE *mfp,*cfp
int ttch=0,xorRes,ttbitdiff=0
char mch,cch
float bdiff=0
if((mfp=fopen(mfile,"r"))==NULL)
{cout<<"Cannot open the file to compare"<<endl }
if((cfp=fopen(cfile,"r"))==NULL)
{cout<<"Cannot open the file to compare"<<endl }
else
{
while(!feof(mfp)&!feof(cfp))
{
ttch++
mch=fgetc(mfp)
cch=fgetc(cfp)
xorRes=mch^cch
ttbitdiff+=(xorRes&1)+(xorRes&2)/2+(xorRes&4)/4+(xorRes&8)/8+(xorRes&16)/16+(xorRes&32)/32+(xorRes&64)/64+(xorRes&128)/128
}
bdiff=float(ttbitdiff)*100/float(ttch*8)
}
*bitdiff8byte=float(ttbitdiff)*100/float(8*8)
return bdiff
-DESProcess
FILE*mfp,*cfp
int ttch=0,xorRes,ttbitdiff=0
char mch,cch
float bdiff=0
if((mfp=fopen(mfile,"r"))==NULL)
{cout<<"Cannot open the file to compare"<<endl }
if((cfp=fopen(cfile,"r"))==NULL)
{cout<<"Cannot open the file to compare"<<endl }
else
{
while(!feof(mfp)&!feof(cfp))
{
ttch++
mch=fgetc(mfp)
cch=fgetc(cfp)
xorRes=mch^cch
ttbitdiff+=(xorRes&1)+(xorRes&2)/2+(xorRes&4)/4+(xorRes&8)/8+(xorRes&16)/16+(xorRes&32)/32+(xorRes&64)/64+(xorRes&128)/128
}
bdiff=float(ttbitdiff)*100/float(ttch*8)
}
*bitdiff8byte=float(ttbitdiff)*100/float(8*8)
return bdiff
Platform: |
Size: 5120 |
Author: wxh |
Hits:
Description: 指纹识别的一套完整成,还有指纹图像。绝对有用,适合毕业设计研究-Into a complete fingerprint recognition, as well as the fingerprint image. Definitely useful for the design of graduation
Platform: |
Size: 421888 |
Author: 宋琦 |
Hits:
Description: gold.m is mfile that generate gold sequency.
Platform: |
Size: 1024 |
Author: cyrus |
Hits:
Description: PDDocument doc
PDFTextStripper stripper = new PDFTextStripper()
stripper.resetEngine()
stripper.setWordSeparator(" ")
// stripper.setShouldSeparateByBeads(false)
stripper.setShouldSeparateByBeads(true)
stripper.setLineSeparator("\r\n ")
// stripper.setSpacingTolerance(0.1f)
String text = stripper.getText(doc)
doc.close()
// stripper.get
File file = new File(fileName)
file.getPath()
input(mfile,"\n\n"+file.getPath(),"old")
input(mfile,text,"old")
Platform: |
Size: 20852736 |
Author: niktok |
Hits: