printf(" 請輸入%d個課程的代表值(<%d個字符):\n" ,(*G).vexnum,MAX_NAME) for(i=0 i<(*G).vexnum ++i) /* 構(gòu)造頂點向量 */ { scanf(" %s" ,(*G).vertices[i].data) (*G).vertices[i].firstarc=NULL } printf(" 請輸入%d個課程的學(xué)分值(<%d個字符):\n" ,(*G).vexnum,MAX_NAME) for(i=0 i<(*G).vexnum ++i) /* 構(gòu)造頂點向量 */ {scanf(" %s" ,(*G).verticestwo[i].data) } printf(&quo
標(biāo)簽: vexnum quot MAX_NAME printf
上傳時間: 2016-08-15
上傳用戶:Avoid98
base64算法,前幾天用來截獲MSN協(xié)議時獲取文件名時使用的。之前用的一個網(wǎng)上下下來的base64的源碼,解碼總是錯誤。后來干脆自己寫了一個。由于MSN協(xié)議解出來的字符串是UNICODE的,所以那些base64轉(zhuǎn)換器解碼后顯示不出有用信息,中間被截斷(null字符)。 里面包含兩個項目(一個庫,一個測試程序)
上傳時間: 2016-08-27
上傳用戶:Avoid98
wince EVC 簡單的圖片瀏覽功能,自已隨意擴(kuò)展 支持 *.bmp *.jpg *.gif *.png 等等 // TODO: Add your control notification handler code here CString defFilter("選中其中一個文件|*.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
上傳時間: 2016-09-22
上傳用戶: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
上傳時間: 2013-12-22
上傳用戶:小寶愛考拉
實現(xiàn)基本的購物車功能。 eclipse+sqlserver2005 1.主要強(qiáng)調(diào)了購物車的業(yè)務(wù)邏輯。 2,利用javabean封裝。比較適合jsp初學(xué)者。 3.簡潔實用。可以在此基礎(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高級應(yīng)用 , 156 ) insert into t_sp values( J2EE高級開發(fā) , 126 ) insert into t_sp values( 華碩筆記本電腦 , 6789 ) go select * from t_sp go
標(biāo)簽: sqlserver eclipse 2005 邏輯
上傳時間: 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
上傳時間: 2013-11-25
上傳用戶:1079836864
/* 實現(xiàn)一個圖類,通過增加結(jié)點關(guān)系而增加結(jié)點,通過創(chuàng)建新關(guān)系而覆蓋舊關(guān)系 能在DOS窗口打印圖結(jié)點列表和結(jié)點邊列表 初始化的時候 結(jié)點表首指針置為NULL,在釋放圖對象的時候,析構(gòu)函數(shù)實現(xiàn)釋放結(jié)點和邊結(jié)點 */
標(biāo)簽:
上傳時間: 2016-11-23
上傳用戶: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
上傳時間: 2013-12-14
上傳用戶:zsjinju
線程描述。主程序創(chuàng)建兩個線程myThread1 和 myThread2 ,每個線程打印一句話。使用pthread_create(&id,NULL,(void *) thread,NULL)完成。 先定義每個線程的執(zhí)行體,然后在main中創(chuàng)建幾個線程,最后主線程序等待子線程序結(jié)束后再退出。 2、創(chuàng)建兩個線程,分別向線程傳遞如下兩種類型的參數(shù)
標(biāo)簽: myThread1 myThread2 線程 程序
上傳時間: 2016-12-14
上傳用戶:米卡
/* 在這里我們連接 "destroy" 事件到一個信號處理函數(shù)。 * 對這個窗口調(diào)用 gtk_widget_destroy() 函數(shù)或在 "delete_event" 回調(diào)函數(shù)中返回 FALSE 值 * 都會觸發(fā)這個事件。*/ g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL) /* 設(shè)置窗口邊框的寬度。*/ gtk_container_set_border_width (GTK_CONTAINER (window), 10) /* 創(chuàng)建一個標(biāo)簽為 "Hello World" 的新按鈕。*/ button = gtk_button_new_with_label ("hello world") /* 當(dāng)按鈕收到 "clicked" 信號時會調(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
上傳時間: 2016-12-26
上傳用戶:zsjinju
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1