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

正文內(nèi)容

c語(yǔ)言倉(cāng)庫(kù)貨物管理系統(tǒng)概述(存儲(chǔ)版)

  

【正文】 *\n)。 if(k==1) { head=create()。 } if(k==3) { printf(請(qǐng)輸入要修改的貨物編號(hào):)。i)。break。 printf(\n)。 printf(\n)。 printf(\t\t******************************\n)。 printf(\t\t******************************\n)。 printf(\t\t****************************\n)。 } if(k==2) { printf(請(qǐng)輸入要查詢的貨物編號(hào):)。k3) { printf(沒(méi)有此選項(xiàng),請(qǐng)重新輸入!\n)。 printf(\n)。1!=2) { printf(請(qǐng)?jiān)俅屋斎肽愕纳矸輁n)。真的感覺(jué)自己成功的做一份課程設(shè)計(jì)這個(gè)過(guò)程很 不容易,因?yàn)樽约簩?duì)知識(shí)運(yùn)用不熟練,以后,我一定多加練習(xí)所學(xué)東西,讓自己的水平提升一個(gè)檔次,也給自己的人生添彩!。 } if(i!=1amp。 printf(\t\t**********************\n)。 } if(k=0amp。k)。 printf(\t\t****************************\n)。 printf(\t\t******************************\n)。 printf(\t\t****************************************\n)。 printf(\n)。 del(head,m)。add2(head,j)。 } if(k==4) { printf( \n)。 find(head,num)。k)。 printf(\t\t******************************\n)。 printf(\t\t****************************************\n)。break。 head=headnext。 p1=head。 } for(i=1。 } fclose(fp)。 } } return newhead。 } p=pnext。 while(head!=NULL) { p=head。 return head。 int i=0。 } } p5=head。p4amount)。 printf(添加信息成功\n)。p3num,p3name,amp。 p3=(struct goods *)malloc(sizeof(struct goods))。break。printf(修改貨物信息成功\n)。 case 3:printf(請(qǐng)輸入修改的貨物的價(jià)格:)。scanf(%d,amp。 p2=head。 p1=head。pamount)。 struct goods *head,*p,*q。五 系統(tǒng)運(yùn)行與演示開(kāi)始界面:管理員界面管理員選擇0運(yùn)行的界面:管理員選擇1的運(yùn)行界面:管理員選擇2的運(yùn)行界面:管理員選擇3的運(yùn)行界面:管理員選擇4的運(yùn)行界面:管理員選擇5的運(yùn)行界面:管理員選擇6的運(yùn)行界面:管理員選擇7的運(yùn)行界面:管理員選擇8的運(yùn)行界面:1管理員選擇10的運(yùn)行界面:1用戶界面:1用戶選擇1的運(yùn)行界面:1用戶選擇2的運(yùn)行界面:六、附錄(代碼)includeincludeincludeincludedefine M sizeof(struct goods)char password[10]=......。 }四 設(shè)計(jì)與調(diào)試分析1. 在剛開(kāi)始的時(shí)候應(yīng)先將鏈表的創(chuàng)建與輸出正常運(yùn)行出來(lái),然后再添加各個(gè)功能。 while(1) { if(i==1) { menu1()。 printf(\t\t****************************\n)。 printf(\n)。 printf(請(qǐng)輸入功能選擇鍵:)。 printf(\t\t******************************************\n)。 printf(\t\t******************************\n)。 } if(k==0) { printf(\t\t****************************************\n)。 printf(貨物排序成功\n)。 scanf(%d,amp。 case 2:scanf(%d,amp。 print(head)。 scanf(%d,amp。 printf(請(qǐng)輸入功能選擇鍵:)。 printf(\t\t******************************\n)。 } } printf(\t\t****************************************\n)。 scanf(%s,ch)。 while(head!=NULL) { p5=head。 if(pnext==0) { break。 if(fp==NULL) { printf(cannot have this file\n)。 } while(pm!=NULL) { fwrite(pm,sizeof(struct goods),1,fp)。 pt=head。 } if(a!=head) { bnext=anext。 a=head。 printf(刪除貨物信息成功\n)。}刪除貨物信息函數(shù)struct goods *del(struct goods *head,int num){ struct goods *p3,*p4。 p5=head。p4num,p4name,amp。 head=p3。 while(pm!=NULL) { while(pmnum==p3num) { printf(已有此貨物編號(hào)\n)。 int i=0。p2amount)。scanf(%d,amp。printf(修改貨物信息成功\n)。j)。 } if(i==0) printf(沒(méi)有查到貨物編號(hào)\n)。 return head。pnum,pname,amp。}。實(shí)現(xiàn)了統(tǒng)計(jì)每個(gè)貨物的信息,然后可以輕松地通過(guò)對(duì)貨物編號(hào)的排序快速的去找到想要查詢的貨物,然后就可以實(shí)現(xiàn)對(duì)貨物的修改、刪除、添加等功能。在程序設(shè)計(jì)階段應(yīng)盡量利用已有的標(biāo)準(zhǔn)函數(shù),加大代碼的重用率。前期準(zhǔn)備工作完備與否直接影響到后序上機(jī)調(diào)試工作的效率。因此,本程序就可以完成統(tǒng)計(jì)并管理貨物信息的任務(wù)。 struct goods *next。 scanf(%d %s %f %d,amp。 } } qnext=NULL。 } p1=p1next。 scanf(%d,amp。scanf(%s,p2name)。 case 4:printf(請(qǐng)輸入修改的貨物的數(shù)量:)。p2price,amp。}(1)添加貨物信息函數(shù)頭插法 struct goods *add1(struct goods *head){ struct goods *p3,*pm。p3amount)。 } p3next=head。 scanf(%d %s %f %d,amp。p4amount)。 printf(添加信息成功\n)。 free(p3)。 q=headnext。 q=qnext。}輸出信息函數(shù)void print(struct goods *head){ struct goods *pt。 exit(0)。 fp=fopen(,r)。 q=p。}1釋放內(nèi)存函數(shù)void free_(struct goods *head){ struct goods *p5。 printf(請(qǐng)輸入密碼:)。 exit (0)。 printf(\t\t******************************\n)。 while(1) { printf(\n)。 } if(k==2) { printf(請(qǐng)輸入要查詢的貨物編號(hào):)。 change(head,n)。break。 } } if(k==5) { printf(請(qǐng)輸入要?jiǎng)h除的貨物編號(hào):)。 print(head)。 } if(k==10) { head=save_()。 printf(\t\t******************************\n)。 } }}1用戶界面void menu2(){ while(1) { struct goods *head。 int num,k。 find(head,num)。 printf(\t\t******倉(cāng)庫(kù)貨物系統(tǒng)*********
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1