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
上傳用戶(hù):Avoid98
base64算法,前幾天用來(lái)截獲MSN協(xié)議時(shí)獲取文件名時(shí)使用的。之前用的一個(gè)網(wǎng)上下下來(lái)的base64的源碼,解碼總是錯(cuò)誤。后來(lái)干脆自己寫(xiě)了一個(gè)。由于MSN協(xié)議解出來(lái)的字符串是UNICODE的,所以那些base64轉(zhuǎn)換器解碼后顯示不出有用信息,中間被截?cái)?null字符)。 里面包含兩個(gè)項(xiàng)目(一個(gè)庫(kù),一個(gè)測(cè)試程序)
上傳時(shí)間: 2016-08-27
上傳用戶(hù):Avoid98
wince EVC 簡(jiǎn)單的圖片瀏覽功能,自已隨意擴(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
上傳用戶(hù):gut1234567
The MAX481E, MAX483E, MAX485E, MAX487E–MAX491E, and MAX1487E are low-power transceivers for RS-485 and RS-422 communications in harsh environments. Each driver output and receiver input is protected against ±15kV electrostatic discharge (ESD) shocks, without latchup. These parts contain one driver and one receiver. The MAX483E, MAX487E, MAX488E, and MAX489E feature reduced slewrate drivers that minimize EMI and reduce reflections caused by improperly terminated cables, thus allowing error-free data transmission up to 250kbps. The driver slew rates of the MAX481E, MAX485E, MAX490E, MAX491E, and MAX1487E are not limited, allowing them to transmit up to 2.5Mbps.
標(biāo)簽: MAX transceivers 485 low-power
上傳時(shí)間: 2013-12-22
上傳用戶(hù):小寶愛(ài)考拉
實(shí)現(xiàn)基本的購(gòu)物車(chē)功能。 eclipse+sqlserver2005 1.主要強(qiáng)調(diào)了購(gòu)物車(chē)的業(yè)務(wù)邏輯。 2,利用javabean封裝。比較適合jsp初學(xué)者。 3.簡(jiǎn)潔實(shí)用。可以在此基礎(chǔ)上開(kāi)發(fā)更加復(fù)雜功能的購(gòu)物網(wǎng)站。 數(shù)據(jù)庫(kù)建立 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í)開(kāi)發(fā) , 126 ) insert into t_sp values( 華碩筆記本電腦 , 6789 ) go select * from t_sp go
標(biāo)簽: sqlserver eclipse 2005 邏輯
上傳時(shí)間: 2013-12-20
上傳用戶(hù):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
上傳用戶(hù):1079836864
/* 實(shí)現(xiàn)一個(gè)圖類(lèi),通過(guò)增加結(jié)點(diǎn)關(guān)系而增加結(jié)點(diǎn),通過(guò)創(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
上傳用戶(hù):xiaohuanhuan
pstmt = conn.prepareStatement("select ordernumber,datetime,price,dayofmoney from zujie where ordernumber= "+ cdName + " ") rs=pstmt.executeQuery() if(rs!=null && rs.next()){ String datetime = rs.getString(2) java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat ("yyyy-MM-dd") Date date = new Date() String date1=formatter.format(date) ParsePosition pos = new ParsePosition(0) ParsePosition pos1 = new ParsePosition(0) Date dt1=formatter.parse(datetime,pos) Date dt2=formatter.parse(date1,pos1) Long l = (dt2.getTime()-dt1.getTime())/(3600*24*1000)+1 double price = rs.getDouble(3) double dayofmoney=rs.getDouble(4) double dayofmoneybuy=dayofmoney*l double otherMoney = price-dayofmoneybuy request.setAttribute("price", price) request.setAttribute("l", l) request.setAttribute("dayofmoney", dayofmoneybuy) request.setAttribute("otherMoney", otherMoney)
標(biāo)簽: prepareStatement ordernumber dayofmoney datetime
上傳時(shí)間: 2013-12-14
上傳用戶(hù):zsjinju
線(xiàn)程描述。主程序創(chuàng)建兩個(gè)線(xiàn)程myThread1 和 myThread2 ,每個(gè)線(xiàn)程打印一句話(huà)。使用pthread_create(&id,NULL,(void *) thread,NULL)完成。 先定義每個(gè)線(xiàn)程的執(zhí)行體,然后在main中創(chuàng)建幾個(gè)線(xiàn)程,最后主線(xiàn)程序等待子線(xiàn)程序結(jié)束后再退出。 2、創(chuàng)建兩個(gè)線(xiàn)程,分別向線(xiàn)程傳遞如下兩種類(lèi)型的參數(shù)
標(biāo)簽: myThread1 myThread2 線(xiàn)程 程序
上傳時(shí)間: 2016-12-14
上傳用戶(hù):米卡
/* 在這里我們連接 "destroy" 事件到一個(gè)信號(hào)處理函數(shù)。 * 對(duì)這個(gè)窗口調(diào)用 gtk_widget_destroy() 函數(shù)或在 "delete_event" 回調(diào)函數(shù)中返回 FALSE 值 * 都會(huì)觸發(fā)這個(gè)事件。*/ g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL) /* 設(shè)置窗口邊框的寬度。*/ gtk_container_set_border_width (GTK_CONTAINER (window), 10) /* 創(chuàng)建一個(gè)標(biāo)簽為 "Hello World" 的新按鈕。*/ button = gtk_button_new_with_label ("hello world") /* 當(dāng)按鈕收到 "clicked" 信號(hào)時(shí)會(huì)調(diào)用 hello() 函數(shù),并將NULL傳給 * 它作為參數(shù)。hello() 函數(shù)在前面定義了。*/ g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (hello), NULL)
標(biāo)簽: gtk_widget_destroy delete_event destroy FALS
上傳時(shí)間: 2016-12-26
上傳用戶(hù):zsjinju
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1