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 ttbitdiff xorRes bdiff
上传时间: 2016-07-02
上传用户:1079836864
虚拟串口程序源代码 使用Vc开发的,open source!!fr
上传时间: 2013-12-10
上传用户:13681659100
主要源码: void CFDlg::OnChangeEdit1() { UpdateData() m_strExt.MakeUpper() m_list.ResetContent() if(m_strExt.GetLength()==0) return CStdioFile sf if(sf.open("FileExt.txt",Cfile::modeRead)) { CString strTemp,strOut while(sf.ReadString(strTemp)) { if(strTemp.Left(m_strExt.GetLength()) ==m_strExt) { m_list.AddString(strTemp) } } } sf.Close() m_list.SetCurSel(0) this->OnSelchangeList2() } void CFDlg::OnSelchangeList2() { CString strTemp,strExt m_list.GetText(m_list.GetCurSel(),strTemp) strExt=strTemp.Left(strTemp.FindOneOf(" ")) //MessageBox(strExt) CString strFileName ="eee."+strExt //MessageBox(strFileName) SHFILEINFO shfi memset(&shfi,0,sizeof(shfi)) //或者ZeroMemory(&shfi,sizeof(shfi)) ::SHGetFileInfo(strFileName, FILE_ATTRIBUTE_NORMAL, &shfi, sizeof(shfi), SHGFI_ICON|SHGFI_USEFILEATTRIBUTES) m_icon.SetIcon(shfi.hIcon) }
标签: OnChangeEdit1 UpdateData ResetConte MakeUpper
上传时间: 2013-12-20
上传用户:zl5712176
Project file for MS Visual C++ 6.0. Requires GLUT DLL (www.opengl.org) Adjust program constants in Landscape.h and Utility.cpp. MAPS: Default map is read from HeghtXXX.raw where XXX is the MAP_SIZE (as defined in Landscape.h). If this map is not found, the program attempts to open "Map.ved", a Tread Marks map file. Tread Marks maps will only work for MAP_SIZE == 1024. Also, the MULT_SCALE to view Tread Marks maps correctly is "0.25f". (www.TreadMarks.com)
标签: constants Requires Project program
上传时间: 2014-12-03
上传用户:LouieWu
Introduction: 1. Macro1: AddFailureModeCol is used to the test report generated from GNPO Rpt Tools i. You can just open the test report, apply AddFailureModeCol 2. Macro2: DPHU_Match is for the test report after meeting i. You open the DPHU_Format_26Dec.xls, then apply DPHU_Match, after the program starts to run, you select the after-meeting test report from which you want to generate a dphu report. ii. Use “Save As” instead of “Save” to save the generated dphu report. Because later on you still want to use the DPHU_Format_26Dec.xls as a template.
标签: AddFailureModeCol Introduction generated Macro1
上传时间: 2016-08-09
上传用户:爺的气质
用VB做QQ强制聊天器 用VB做QQ强制聊天器 大家好..我是愚罪..QQ:303931726 今天教大家来用VB做QQ强制聊天器..... 废话不多说了``` 直接打开VB 新建一个EXE文件..新建一个Text和一个Command按纽 最后直接把代码写上去就可以了... Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _ (ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long Private Sub Command1_Click() ShellExecute 0, "open", "tencent://message/?uin=" + Text1.Text, "", "", 1 End Sub 可以了...生成试验下..我就不美化了..你们可以去美化下``` 看。。成功了
上传时间: 2014-01-19
上传用户:日光微澜
socket编程原理:UNIX系统的I/O命令集,是从Maltics和早期系统中的命令演变出来的,其模式为打开一读/写一关闭(open-write-read- close)。在一个用户进程进行I/O操作时,它首先调用“打开”获得对指定文件或设备的使用权,并返回称为文件描述符的整型数
上传时间: 2016-08-12
上传用户:懒龙1988
delphi 写的delphi的程序 Handel is a free, standalone development tool created with Delphi 3 that enables you to create, compile, and run projects. Handel also supports Form Design Environments such as Delphi and can open and write units, projects, and forms created with Delphi 2 or 3. However, it is not perfectly compatible with Delphi.
标签: delphi development standalone created
上传时间: 2014-01-18
上传用户:jing911003
一本详细介绍手机3D图形编程的书,使用open GL ES 2.0和M3G。
上传时间: 2013-12-15
上传用户:362279997
pl/sql的综合运用上例用到的oracle里关于游标的几个内置函数:%isopen,%notfound,%rowcount。 隐式游标更多用在for loop中,你不用再手工去open,fetch或是close游标,非常方便
标签: notfound rowcount oracle isopen
上传时间: 2013-12-19
上传用户:ikemada