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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)報(bào)告—商品管理-文庫(kù)吧資料

2024-09-16 02:30本頁面
  

【正文】 } 查找算法的實(shí)現(xiàn) void search( ) {char name[10]。 getch( )。 printf(請(qǐng)返回到菜單進(jìn)行其它操作 \n)。 }while(!strcmp(judge,yes))。 } printf(繼續(xù)刪除 ?(yes or no):)。 printf(\n 家電信息刪除成功 !\n\n)。 ptr1nextprior=ptr1prior。 ptr1prior=ptr2。strcmp(ptr1name,name)!=0) {ptr2=ptr1。ptr1num!=del_numamp。 } else /*判斷是否是目標(biāo)結(jié)點(diǎn) */ { while(ptr1!=NULLamp。 if(ptr1num==del_num||(strcmp(ptr1name,name)==0)) { head=ptr1next。sel!=2)。 } }while(sel!=1amp。name)。 case 2: printf(輸入家電名稱 :)。del_num)。 switch(sel) {case 1: printf(輸入家電編號(hào) :)。 scanf(%d,amp。 printf( * \n)。 else do 15 {do { printf(請(qǐng)輸入要?jiǎng)h除的家電的信息 :\n)。 head=openfile( )。 int del_num。 char judge[10]。 return(head)。 printf(并選擇 6進(jìn)行保 存,否則你將丟失剛插入的信息 !\n)。 printf(插入成功 !\n)。 scanf(%s,judge)。} } return(head)。} else {ptr1next=ptr3。 else ptr2next=ptr3。 14 ptr1=ptr1next。amp。ptr3next=NULL。 ptr1=head。 getch( )。 if(CHECK_COUNT2) printf(請(qǐng)輸入正確的 商品數(shù)量 !\n)。scanf(%f,amp。 printf(Please input goods39。scanf(%d,amp。 printf(Please input goods39。scanf(%s,amp。 } printf(Please input goods39。 if(ptr3num=0) {printf(輸入錯(cuò)誤 !請(qǐng)重新選擇要插入的家電 \n)。scanf(%ld,amp。 } do {printf(Please input goods39。 if((ptr3=(COM*)malloc(LEN))==NULL) {printf(沒有足夠內(nèi)存,無法創(chuàng)造節(jié)點(diǎn) !)。 if(head==NULL) return(NULL)。 printf(請(qǐng)輸入要插入的家電的文件名 :)。 char string4[ ]={家電單價(jià) }。 char string2[ ]={家電名稱 }。 } 插入算法的實(shí)現(xiàn) COM * insert( ) {COM * ptr3。 printf(請(qǐng)返回到菜單進(jìn)行其它操作 :)。 } i=i+1。 getch( )。 if(i/10==1) /*超過十行換頁 */ {i=0。 do {printf(PRINT)。 12 printf(家電編號(hào) 家電名稱 家電數(shù)量 家電單價(jià) \n\n)。 if(head==NULL) return。 printf(請(qǐng)輸入要輸出的家電的文件名 :)。 return(head)。 printf(輸入商品信息的操作完成,下面請(qǐng)進(jìn)行保存 :)。 }while(CHECK_COUNT)。ptr1price)。%s:\n,n,string4)。ptr1count)。%s:\n,n,string3)。ptr1name)。%s:\n,n,string2)。 break。ptr1num)。%s:\n,n,string1)。 getch( )。 ptr2=ptr1。 ptr1prior=ptr2。 while(ptr1num!=0) { if(n==1) head=ptr1。 if(CHECK_COUNT) printf(請(qǐng)輸入正確的商品數(shù)量 !\n)。scanf(%f,amp。 printf(Please input the No.%d goods39。scanf(%d,amp。 printf(Please input the No.%d goods39。scanf(%s,amp。 } printf(Please input the No.%d goods39。 free(ptr1)。 if(ptr1num==0) {printf( 請(qǐng)按“ enter”鍵進(jìn)入菜單選項(xiàng) !)。 scanf(%ld,amp。 do {printf(Please input the No.%d goods39。 10 getch( )。 int n=1。 char string3[ ]={數(shù)量 }。 /*文件擴(kuò)展名 .dat*/ 輸入算法的實(shí)現(xiàn) COM *input( ) {char string1[ ]={編號(hào) }。 char filename1[10]。 /*定義指向文件的指針變量 */ COM *head=NULL。 /*從文件將 家電 信息載入鏈表 */ void print( )。 /*查找 家電 信息 */ void save(COM *head)。 /*插入 家電 信息 */ COM *delet( )。 /*定義結(jié)構(gòu)體 */ COM *input()。 struct *prior, *next。 int count。 流程圖: 8 圖 保存算法 算法的實(shí)現(xiàn) 引用庫(kù)函數(shù)及變量的定義 include /*標(biāo)準(zhǔn)輸入 /輸出頭文件 */ include /*包含繪制圖形函數(shù)等頭文件 */ include /*包含字符串處理函數(shù)頭文件 */ include /*包含動(dòng)態(tài)存儲(chǔ)與釋放函數(shù)頭文件 */ define LEN sizeof(COM) define PRINT % 15ld% 15s% 15d% 15f\n,ptr1num,ptr1name,ptr1count,ptr1price 9 define CHECK_COUNT ptr1count0 define CHECK_COUNT2 ptr3count0 typedef struct {long int num。 流程圖 : 圖 刪除算法 輸出算法 7 輸出 算法 具有的功能是在輸入特定的文件名之后,輸出該文件中所包含的全部 家電 信息。使之指向被刪除結(jié)點(diǎn)的后面一個(gè)結(jié)點(diǎn)即可。刪除可以按照家電編號(hào)和 家電名稱兩種方法進(jìn)行。 流程圖: 4 圖 輸入算法 插入算法
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1