-
printf(" 請輸入%d個課程的代表值(<%d個字符):\n" ,(*G).vexnum,MAX_NAME)
for(i=0 i<(*G).vexnum ++i) /* 構造頂點向量 */
{ scanf(" %s" ,(*G).vertices[i].data)
(*G).vertices[i].firstarc=NULL
}
printf(" 請輸入%d個課程的學分值(<%d個字符):\n" ,(*G).vexnum,MAX_NAME)
for(i=0 i<(*G).vexnum ++i) /* 構造頂點向量 */
{scanf(" %s" ,(*G).verticestwo[i].data)
}
printf(&quo
標簽:
vexnum
quot
MAX_NAME
printf
上傳時間:
2016-08-15
上傳用戶:Avoid98
-
base64算法,前幾天用來截獲MSN協議時獲取文件名時使用的。之前用的一個網上下下來的base64的源碼,解碼總是錯誤。后來干脆自己寫了一個。由于MSN協議解出來的字符串是UNICODE的,所以那些base64轉換器解碼后顯示不出有用信息,中間被截斷(null字符)。
里面包含兩個項目(一個庫,一個測試程序)
標簽:
base
64
MSN
算法
上傳時間:
2016-08-27
上傳用戶:Avoid98
-
wince EVC 簡單的圖片瀏覽功能,自已隨意擴展
支持 *.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()
}
標簽:
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.
標簽:
MAX
transceivers
485
low-power
上傳時間:
2013-12-22
上傳用戶:小寶愛考拉
-
實現基本的購物車功能。
eclipse+sqlserver2005
1.主要強調了購物車的業務邏輯。
2,利用javabean封裝。比較適合jsp初學者。
3.簡潔實用。可以在此基礎上開發更加復雜功能的購物網站。
數據庫建立
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商務筆記本電腦 , 8666 )
insert into t_sp values( 精通JSP技術 , 236 )
insert into t_sp values( ASP.NET高級應用 , 156 )
insert into t_sp values( J2EE高級開發 , 126 )
insert into t_sp values( 華碩筆記本電腦 , 6789 )
go
select * from t_sp
go
標簽:
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.
標簽:
performance
likelihood
decision
feedback
上傳時間:
2013-11-25
上傳用戶:1079836864
-
/*
實現一個圖類,通過增加結點關系而增加結點,通過創建新關系而覆蓋舊關系
能在DOS窗口打印圖結點列表和結點邊列表
初始化的時候 結點表首指針置為NULL,在釋放圖對象的時候,析構函數實現釋放結點和邊結點
*/
標簽:
上傳時間:
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)
標簽:
prepareStatement
ordernumber
dayofmoney
datetime
上傳時間:
2013-12-14
上傳用戶:zsjinju
-
線程描述。主程序創建兩個線程myThread1 和 myThread2 ,每個線程打印一句話。使用pthread_create(&id,NULL,(void *) thread,NULL)完成。
先定義每個線程的執行體,然后在main中創建幾個線程,最后主線程序等待子線程序結束后再退出。
2、創建兩個線程,分別向線程傳遞如下兩種類型的參數
標簽:
myThread1
myThread2
線程
程序
上傳時間:
2016-12-14
上傳用戶:米卡
-
/* 在這里我們連接 "destroy" 事件到一個信號處理函數。
* 對這個窗口調用 gtk_widget_destroy() 函數或在 "delete_event" 回調函數中返回 FALSE 值
* 都會觸發這個事件。*/
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (destroy), NULL)
/* 設置窗口邊框的寬度。*/
gtk_container_set_border_width (GTK_CONTAINER (window), 10)
/* 創建一個標簽為 "Hello World" 的新按鈕。*/
button = gtk_button_new_with_label ("hello world")
/* 當按鈕收到 "clicked" 信號時會調用 hello() 函數,并將NULL傳給
* 它作為參數。hello() 函數在前面定義了。*/
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (hello), NULL)
標簽:
gtk_widget_destroy
delete_event
destroy
FALS
上傳時間:
2016-12-26
上傳用戶:zsjinju