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
標(biāo)簽: DESProcess ttbitdiff xorRes bdiff
上傳時(shí)間: 2016-07-02
上傳用戶:1079836864
package query public class LinkQuery { private Node front private Node vear public LinkQuery() { this.front=Null this.vear=Null } public void add(int i) { Node newNode=new Node(i) if(vear==Null && front==Null) { vear=newNode front=newNode return } vear.next=newNode vear=newNode } public int remove() { if(this.front==Null) { System.out.println("隊(duì)是空的,無法取") return -1 } int temp=this.front.data this.front=this.front.next if(this.front==Null) { this.vear=Null }
標(biāo)簽: private public Node LinkQuery
上傳時(shí)間: 2016-07-08
上傳用戶:天誠24
內(nèi)存的申請(qǐng)和分配并沒有成功,但程序員卻使用了它。一些新手經(jīng)常會(huì)犯這種錯(cuò)誤,他們并不會(huì)留意到內(nèi)存沒有分配成功。判斷指針的值是否為Null可以有效地避免這種錯(cuò)誤。
上傳時(shí)間: 2014-01-12
上傳用戶:czl10052678
java 通用連接 MS SQL 的寫法 ,給新手用吧 DBconnect DBC DBC = new DBconnect() java.sql.Statement stmt = Null if (DBC.connectDB()) {
上傳時(shí)間: 2013-12-28
上傳用戶:gmh1314
printf(" 請(qǐng)輸入%d個(gè)課程的代表值(<%d個(gè)字符):\n" ,(*G).vexnum,MAX_NAME) for(i=0 i<(*G).vexnum ++i) /* 構(gòu)造頂點(diǎn)向量 */ { scanf(" %s" ,(*G).vertices[i].data) (*G).vertices[i].firstarc=Null } printf(" 請(qǐng)輸入%d個(gè)課程的學(xué)分值(<%d個(gè)字符):\n" ,(*G).vexnum,MAX_NAME) for(i=0 i<(*G).vexnum ++i) /* 構(gòu)造頂點(diǎn)向量 */ {scanf(" %s" ,(*G).verticestwo[i].data) } printf(&quo
標(biāo)簽: vexnum quot MAX_NAME printf
上傳時(shí)間: 2016-08-15
上傳用戶:Avoid98
base64算法,前幾天用來截獲MSN協(xié)議時(shí)獲取文件名時(shí)使用的。之前用的一個(gè)網(wǎng)上下下來的base64的源碼,解碼總是錯(cuò)誤。后來干脆自己寫了一個(gè)。由于MSN協(xié)議解出來的字符串是UNICODE的,所以那些base64轉(zhuǎn)換器解碼后顯示不出有用信息,中間被截?cái)?Null字符)。 里面包含兩個(gè)項(xiàng)目(一個(gè)庫,一個(gè)測試程序)
上傳時(shí)間: 2016-08-27
上傳用戶:Avoid98
wince EVC 簡單的圖片瀏覽功能,自已隨意擴(kuò)展 支持 *.bmp *.jpg *.gif *.png 等等 // TODO: Add your control notification handler code here CString defFilter("選中其中一個(gè)文件|*.bmp *.jpg *.gif *.png") CFileDialog dlg(TRUE,Null,Null,OFN_ALLOWMULTISELECT,defFilter) if(dlg.DoModal()==IDOK){ PathName=dlg.GetPathName() }
標(biāo)簽: notification control wince TODO
上傳時(shí)間: 2016-09-22
上傳用戶:gut1234567
實(shí)現(xiàn)基本的購物車功能。 eclipse+sqlserver2005 1.主要強(qiáng)調(diào)了購物車的業(yè)務(wù)邏輯。 2,利用javabean封裝。比較適合jsp初學(xué)者。 3.簡潔實(shí)用??梢栽诖嘶A(chǔ)上開發(fā)更加復(fù)雜功能的購物網(wǎng)站。 數(shù)據(jù)庫建立 create database shop_db go use shop_db go create table t_sp ( s_id int identity(1,1) primary key, s_name varchar(20) not Null, s_price money not Null ) go insert into t_sp values( IBM筆記本電腦 , 19999 ) insert into t_sp values( Hp商務(wù)筆記本電腦 , 8666 ) insert into t_sp values( 精通JSP技術(shù) , 236 ) insert into t_sp values( ASP.NET高級(jí)應(yīng)用 , 156 ) insert into t_sp values( J2EE高級(jí)開發(fā) , 126 ) insert into t_sp values( 華碩筆記本電腦 , 6789 ) go select * from t_sp go
標(biāo)簽: sqlserver eclipse 2005 邏輯
上傳時(shí)間: 2013-12-20
上傳用戶:netwolf
This demo shows the BER performance of linear, decision feedback (DFE), and maximum likelihood sequence estimation (MLSE) equalizers when operating in a static channel with a deep Null. The MLSE equalizer is invoked first with perfect channel knowledge, then with an imperfect, although straightforward, channel estimation algorithm. The BER results are determined through Monte Carlo simulation. The demo shows how to use these equalizers seamlessly across multiple blocks of data, where equalizer state must be maintained between data blocks.
標(biāo)簽: performance likelihood decision feedback
上傳時(shí)間: 2013-11-25
上傳用戶:1079836864
/* 實(shí)現(xiàn)一個(gè)圖類,通過增加結(jié)點(diǎn)關(guān)系而增加結(jié)點(diǎn),通過創(chuàng)建新關(guān)系而覆蓋舊關(guān)系 能在DOS窗口打印圖結(jié)點(diǎn)列表和結(jié)點(diǎn)邊列表 初始化的時(shí)候 結(jié)點(diǎn)表首指針置為Null,在釋放圖對(duì)象的時(shí)候,析構(gòu)函數(shù)實(shí)現(xiàn)釋放結(jié)點(diǎn)和邊結(jié)點(diǎn) */
標(biāo)簽:
上傳時(shí)間: 2016-11-23
上傳用戶:xiaohuanhuan
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1