freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

數據結構編程實例-文庫吧

2025-06-10 07:23 本頁面


【正文】 switch(xz) {case 1:init(list)。break。 case 2:creat(list)。break。 case 3:printf(pleast input inset position(pos) and value(x))。 scanf(%d%d,amp。position,amp。x)。 if (position1||positionlistlength+1||listlength=LEN) printf(position error\n)。 else insert(list,position,x)。 break。 case 4:printf(pleast input delete position(pos))。 scanf(%d,amp。position)。 if (position1||positionlistlength||listlength==0) printf(position error\n)。 elseprintf(delete position=%d,delete data=%d\n,position,delete(list,position))。 break。 case 5:。 case 6:。 case 7:print(list)。break。 case 0:exit(0)。} } }2. 三種方法建立鏈表include typedef struct node{int data。 struct node *link。}NODE。NODE *creat1() /*按輸入數據的順序建立鏈表,輸入數據通過個數控制*/{int i,data,n。NODE *h=NULL,*p,*last=NULL。printf(please input the num:)。scanf(%d,amp。n)。printf(please input %d datas:,n)。for (i=1。i=n。i++) {p=(NODE*) malloc (sizeof (NODE))。 scanf(%d,amp。pdata)。 if (i==1) h=p。 else lastlink=p。 last=p。 } lastlink=NULL。 return(h)。}NODE *creat2()/*按輸入數據的逆序建立鏈表,輸入數據以0結束*/{int data。NODE *h=NULL,*p。printf(please in
點擊復制文檔內容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1