c語言倉庫貨物管理系統(tǒng)概述_第1頁
c語言倉庫貨物管理系統(tǒng)概述_第2頁
c語言倉庫貨物管理系統(tǒng)概述_第3頁
c語言倉庫貨物管理系統(tǒng)概述_第4頁
c語言倉庫貨物管理系統(tǒng)概述_第5頁
已閱讀5頁,還剩45頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

49/50軟件學(xué)院課程設(shè)計報告設(shè)計名稱:C語言課程設(shè)計選題名稱倉庫貨物管理系統(tǒng)姓名:李明慧學(xué)號:1515925610專業(yè)班級:云計算1班系院):軟件學(xué)院設(shè)計時間:2015.12.29~2013.12.31設(shè)計地點:實驗室15#6101.課程設(shè)計目的鞏固和加深學(xué)生對C語言的基本知識的理解和掌握;掌握C語言編程和程序調(diào)試的基本技能;利用C語言進行簡單軟件設(shè)計的基本思路和方法;提高運用C語言解決實際問題的能力;掌握書寫程序設(shè)計說明文檔的能力。2.課程設(shè)計任務(wù)與要求:任務(wù)設(shè)計題目從任務(wù)書所列選題表中選取,每人1題。要求:1、在處理每個題目時,要求從分析題目的需求入手,進行合理的模塊設(shè)計,定義正確函數(shù)和自定義數(shù)據(jù)類型(如結(jié)構(gòu)體類型)、編制上機程序和上機調(diào)試等若干步驟完成題目,最終寫出完整的分析報告。前期準備工作完備與否直接影響到后序上機調(diào)試工作的效率。在程序設(shè)計階段應(yīng)盡量利用已有的標準函數(shù),加大代碼的重用率。2、設(shè)計的題目要求達到一定工作量(200行以上代碼),并具有一定的深度。3、程序設(shè)計語言推薦使用C,程序書寫規(guī)范,源程序需加必要的注釋并且縮進一致。4、每位同學(xué)需提交可獨立運行的程序;5、每位同學(xué)需獨立提交設(shè)計報告書(每人一份),要求編排格式統(tǒng)一、規(guī)范、內(nèi)容充實,不少于10頁(代碼不算);6、課程設(shè)計實踐作為培養(yǎng)學(xué)生動手能力的一種手段,單獨考核。3.課程設(shè)計說明書一需求分析現(xiàn)階段快速的社會發(fā)展要求高速的完成任何事情。在各個市場,特別在超市,管理員對貨物的高效管理顯得尤為重要。不僅客戶希望快速,準確的查詢到購買的貨物信息,管理員也希望能方便的管理貨物,給客戶提供滿意的服務(wù)。因此,本程序就可以完成統(tǒng)計并管理貨物信息的任務(wù)。實現(xiàn)了統(tǒng)計每個貨物的信息,然后可以輕松地通過對貨物編號的排序快速的去找到想要查詢的貨物,然后就可以實現(xiàn)對貨物的修改、刪除、添加等功能。本程序的宗旨在于提高管理者的工作效率,方便管理者及客戶進行查詢,實現(xiàn)精確地管理貨物目的。二系統(tǒng)設(shè)計該程序設(shè)計主要運用了c語言的基本知識,通過調(diào)用各個函數(shù)實現(xiàn)整個完整的系統(tǒng)功能。該倉庫管理系統(tǒng)主要實現(xiàn)了管理員和用戶兩種不同身份的功能,以下就是程序?qū)崿F(xiàn)的主要功能:管理員的功能:用戶的功能:0:顯示菜單1:讀取信息1:錄入信息2:查詢信息2:查詢信息3:退出系統(tǒng)3:修改信息4:添加信息5:刪除信息6:正向排序7:輸出信息8:保存信息9:退出系統(tǒng)10:讀取信息有功能模塊圖和流程圖功能模塊圖:倉庫貨物管理系統(tǒng)倉庫貨物管理系統(tǒng) 管理員用戶管理員用戶 輸入密碼輸入密碼退出系統(tǒng) 否退出系統(tǒng)查詢信息讀取信息是否正確?查詢信息讀取信息是否正確?是讀取信息退出系統(tǒng)保存信息輸出信息正向排序刪除信息添加信息修改信息查詢信息錄入信息顯示菜單讀取信息退出系統(tǒng)保存信息輸出信息正向排序刪除信息添加信息修改信息查詢信息錄入信息顯示菜單開始流程圖:開始讀取信息是否是管理員? 否讀取信息是否是管理員?輸入密碼查詢信息 是輸入密碼查詢信息密碼是否正確?密碼是否正確?是菜單選擇菜單選擇查詢信息查詢信息添加信息添加信息刪除信息修改信息錄入信息刪除信息修改信息錄入信息正向排序輸入編號正向排序輸入編號選擇添加方式選擇添加方式輸入編號輸入編號輸入信息輸入編號輸入編號輸入信息輸出信息排序完畢輸入添加內(nèi)容查詢完畢輸出信息排序完畢輸入添加內(nèi)容查詢完畢刪除完畢選擇修改內(nèi)容輸入完畢刪除完畢選擇修改內(nèi)容輸入完畢添加完畢輸入修改信息添加完畢輸入修改信息修改完畢修改完畢保保存信息讀取信息讀取信息退出系統(tǒng)退出系統(tǒng)結(jié)束結(jié)束三詳細設(shè)計1、首先寫入頭文件#include<stdio.h>#include<stdlib.h>#include<string.h>#include<windows.h>#defineMsizeof(structgoods)2、定義一個結(jié)構(gòu)體存儲貨物的信息structgoods{intnum;charname[20];floatprice;intamount;structgoods*next;};3、輸入貨物信息函數(shù)structgoods*create(){inti;structgoods*head,*p,*q;p=q=head=NULL;printf("請輸入貨物的編號名稱價格數(shù)量\n");for(i=1;;i++){p=(structgoods*)malloc(sizeof(structgoods));scanf("%d%s%f%d",&p->num,p->name,&p->price,&p->amount);if(i==1)head=p;elseq->next=p;q=p;if(p->num==0){break;}}q->next=NULL;returnhead;}4、查找貨物信息函數(shù)voidfind(structgoods*head,intnum){structgoods*p1;p1=head;inti=0;while(p1!=NULL){if(p1->num==num){i=1;printf("%d%s%.2f%d\n",p1->num,p1->name,p1->price,p1->amount);printf("查找貨物編號成功");}p1=p1->next;}if(i==0)printf("沒有查到貨物編號\n");}5、修改信息函數(shù)voidchange(structgoods*head,intnum){structgoods*p2;p2=head;intj;inti=0;while(p2!=NULL){if(p2->num==num){i=1;printf("你想修改貨物的1.編號2.名稱3.價格4.數(shù)量5.全部修改?\n");scanf("%d",&j);switch(j){case1:printf("請輸入修改的貨物的編號:");scanf("%d",&p2->num);printf("修改貨物信息成功\n");break;case2:printf("請輸入修改的貨物的名稱:");scanf("%s",p2->name);printf("修改貨物信息成功\n");break;case3:printf("請輸入修改的貨物的價格:");scanf("%f",&p2->price);printf("修改貨物信息成功\n");break;case4:printf("請輸入修改的貨物的數(shù)量:");scanf("%d",&p2->amount);printf("修改貨物信息成功\n");break;case5:printf("請輸入修改的貨物的編號名稱價格數(shù)量:");scanf("%d%s%f%d",&p2->num,p2->name,&p2->price,&p2->amount);printf("修改貨物信息成功\n");break;default:printf("error!\n");break;}}p2=p2->next;}if(i==0)printf("沒有找到要修改的貨物編號\n");}6、(1)添加貨物信息函數(shù)頭插法structgoods*add1(structgoods*head){structgoods*p3,*pm;inti=0;pm=head;p3=(structgoods*)malloc(sizeof(structgoods));printf("請?zhí)砑迂浳锏木幪柮Q價格數(shù)量\n");scanf("%d%s%f%d",&p3->num,p3->name,&p3->price,&p3->amount);while(pm!=NULL){while(pm->num==p3->num){printf("已有此貨物編號\n");scanf("%d%s%f%d",&p3->num,p3->name,&p3->price,&p3->amount);pm=head;}pm=pm->next;}p3->next=head;head=p3;returnhead;printf("添加信息成功\n");}(2)添加貨物信息函數(shù)非頭插法structgoods*add2(structgoods*head,intnum){structgoods*p4,*p5;p5=head;p4=(structgoods*)malloc(sizeof(structgoods));printf("請?zhí)砑迂浳锏木幪柮Q價格數(shù)量\n");scanf("%d%s%f%d",&p4->num,p4->name,&p4->price,&p4->amount);while(p5!=NULL){while(p5->num==p4->num){printf("已有此貨物編號\n");scanf("%d%s%f%d",&p4->num,p4->name,&p4->price,&p4->amount);p5=head;}if(p5->num!=p4->num){p5=p5->next;}}p5=head;while(p5!=NULL){if(p5->num==num){p4->next=p5->next;p5->next=p4;}p5=p5->next;}returnhead;printf("添加信息成功\n");}7、刪除貨物信息函數(shù)structgoods*del(structgoods*head,intnum){structgoods*p3,*p4;p3=p4=head;inti=0;while(p3->next!=NULL){p4=p3;p3=p3->next;if(p3->num==num){i=1;p4->next=p3->next;free(p3);printf("刪除貨物信息成功\n");}}if(i==0)printf("沒有找到要刪除的貨物\n");returnhead;}8、正向排序函數(shù)structgoods*sort(structgoods*head){structgoods*p,*q,*a,*b,*newhead;newhead=NULL;intmax;while(head!=NULL){p=head;q=head->next;a=head;b=NULL;max=p->num;while(q!=NULL){if(q->num>max){max=q->num;a=q;b=p;}p=p->next;q=q->next;}if(a!=head){b->next=a->next;}else{head=head->next;}if(newhead==NULL){newhead=a;a->next=NULL;}else{a->next=newhead;newhead=a;}}returnnewhead;}9、輸出信息函數(shù)voidprint(structgoods*head){structgoods*pt;pt=head;while(pt!=NULL){printf("%d%s%.2f%d\n",pt->num,pt->name,pt->price,pt->amount);pt=pt->next;}}10、保存貨物信息函數(shù)voidsave(structgoods*head){FILE*fp;structgoods*pm;pm=head;if((fp=fopen("aaa.dat","w"))==NULL){printf("cannothavethisfile\n");exit(0);}while(pm!=NULL){fwrite(pm,sizeof(structgoods),1,fp);pm=pm->next;}fclose(fp);printf("保存信息成功\n");}11、讀取貨物信息函數(shù)structgoods*save_(){inti;structgoods*head,*p,*q,*p1;FILE*fp;fp=fopen("aaa.dat","r");if(fp==NULL){printf("cannothavethisfile\n");exit(0);}for(i=1;;i++){p=(structgoods*)malloc(sizeof(structgoods));fread(p,M,1,fp);if(i==1)head=p;elseq->next=p;q=p;if(p->next==0){break;}}q->next=NULL;p1=head;while(p1!=NULL){printf("%d%s%.2f%d\n",p1->num,p1->name,p1->price,p1->amount);p1=p1->next;}returnhead;fclose(fp);}12、釋放內(nèi)存函數(shù)voidfree_(structgoods*head){structgoods*p5;while(head!=NULL){p5=head;free(p5);head=head->next;}printf("釋放內(nèi)存成功\n");}13、管理員界面voidmenu1(){structgoods*head;intk,num,n,m,j,i,z=3;charch[7];printf("請輸入密碼:");scanf("%s",ch);while(1){if(strcmp(ch,password)==0){printf("歡迎進入倉庫管理系統(tǒng)\n");break;}else{printf("請再次輸入密碼:(你還有%d次機會)\n",z-1);scanf("%s",ch);z--;}if(z==0){printf("退出系統(tǒng)");exit(0);}}printf("\t\t****************************************\n");printf("\t\t***********倉庫管理系統(tǒng)*****************\n");printf("\t\t****************************************\n");printf("\t\t************0.顯示菜單******************\n");printf("\t\t************1.錄入信息******************\n");printf("\t\t************2.查詢信息******************\n");printf("\t\t************3.修改信息******************\n");printf("\t\t************4.添加信息******************\n");printf("\t\t************5.刪除信息******************\n");printf("\t\t************6.正向排序******************\n");printf("\t\t************7.輸出信息******************\n");printf("\t\t************8.保存信息******************\n");printf("\t\t************9.退出系統(tǒng)******************\n");printf("\t\t***********10.讀取信息******************\n");printf("\t\t****************************************\n");while(1){printf("\n");printf("請輸入功能選擇鍵:");scanf("%d",&k);printf("\n");if(k==1){head=create();printf("創(chuàng)建信息成功請繼續(xù)操作\n");printf("\n");}if(k==2){printf("請輸入要查詢的貨物編號:");scanf("%d",&num);find(head,num);printf("\n");}if(k==3){printf("請輸入要修改的貨物編號:");scanf("%d",&n);change(head,n);print(head);printf("\n");}if(k==4){printf(">>>>>>>>>>>>>>>>1.頭插2.非頭插\n");scanf("%d",&i);switch(i){case1:head=add1(head);print(head);break;case2:scanf("%d",&j);add2(head,j);print(head);break;default:printf("error!");break;}}if(k==5){printf("請輸入要刪除的貨物編號:");scanf("%d",&m);del(head,m);print(head);printf("\n");}if(k==6){printf("請將下列貨物編號進行排序\n");head=sort(head);print(head);printf("貨物排序成功\n");}if(k==7){print(head);printf("\n");}if(k==8){save(head);printf("\n");}if(k==9){free_(head);exit(0);}if(k==10){head=save_();}if(k==0){printf("\t\t****************************************\n");printf("\t\t***********倉庫管理系統(tǒng)*****************\n");printf("\t\t****************************************\n");printf("\t\t************0.顯示菜單******************\n");printf("\t\t************1.錄入信息******************\n");printf("\t\t************2.查詢信息******************\n");printf("\t\t************3.修改信息******************\n");printf("\t\t************4.添加信息******************\n");printf("\t\t************5.刪除信息******************\n");printf("\t\t************6.正向排序******************\n");printf("\t\t************7.輸出信息******************\n");printf("\t\t************8.保存信息******************\n");printf("\t\t************9.退出系統(tǒng)******************\n");printf("\t\t***********10.讀取信息******************\n");printf("\t\t****************************************\n");}}}14、用戶界面voidmenu2(){while(1){structgoods*head;printf("\t\t******************************************\n");printf("\t\t************倉庫管理系統(tǒng)******************\n");printf("\t\t****************************\n");printf("\t\t***********--1.讀取信息--*****************\n");printf("\t\t***********--2.查詢信息--*****************\n");printf("\t\t***********--3.退出系統(tǒng)--*****************\n");printf("\t\t****************************\n");intnum,k;printf("請輸入功能選擇鍵:");scanf("%d",&k);if(k==1){head=save_();}if(k==2){printf("請輸入要查詢的貨物編號:");scanf("%d",&num);find(head,num);printf("\n");}if(k==3){exit(0);}if(k<=0&&k>3){printf("沒有此選項,請重新輸入!\n");}}}15、主界面intmain(){inti;printf("\t\t****************************\n");printf("\t\t******倉庫貨物系統(tǒng)**********\n");printf("\t\t****************************\n");printf("\t\t********1.管理員************\n");printf("\t\t********2.用戶**************\n");printf("\t\t****************************\n");printf("\n");printf("請輸入你的身份:");scanf("%d",&i);while(1){if(i==1){menu1();}if(i==2){menu2();}if(i!=1&&1!=2){printf("請再次輸入你的身份\n");scanf("%d",&i);}}return0;}四設(shè)計與調(diào)試分析在剛開始的時候應(yīng)先將鏈表的創(chuàng)建與輸出正常運行出來,然后再添加各個功能。這就要有一定的思路和學(xué)習(xí)技巧??梢詫⑿枰{(diào)用的函數(shù)歸納一下,然后一個一個添加。對于添加的函數(shù)一個一個的運行,在運行的過程中,也可以只運行其中一個函數(shù),將其它的函數(shù)注釋掉,這樣比較好找錯誤,在將一個個都運行無誤之后再整體運行,查找錯誤。在定義結(jié)構(gòu)體指針時一定要選擇好全局或者是局部變量。我選擇的有全局變量和局部變量,所以在下邊的運用中要多加小心,一旦疏忽,就會報錯。每一個函數(shù)都應(yīng)該有接收頭指針的地址,有的還需要返回值。所以在寫代碼的時候應(yīng)該分清頭指針的去向問題,避免報錯或出現(xiàn)亂碼。五系統(tǒng)運行與演示1、開始界面:2、管理員界面3、管理員選擇0運行的界面:4、管理員選擇1的運行界面:4、管理員選擇2的運行界面:5、管理員選擇3的運行界面:6、管理員選擇4的運行界面:7、管理員選擇5的運行界面:8、管理員選擇6的運行界面:9、管理員選擇7的運行界面:10、管理員選擇8的運行界面:11、管理員選擇10的運行界面:12、用戶界面:13、用戶選擇1的運行界面:14、用戶選擇2的運行界面:六、附錄(代碼)#include<stdio.h>#include<stdlib.h>#include<string.h>#include<windows.h>#defineMsizeof(structgoods)charpassword[10]="";structgoods{intnum;charname[20];floatprice;intamount;structgoods*next;};structgoods*create(){inti;structgoods*head,*p,*q;p=q=head=NULL;printf("請輸入貨物的編號名稱價格數(shù)量\n");for(i=1;;i++){p=(structgoods*)malloc(sizeof(structgoods));scanf("%d%s%f%d",&p->num,p->name,&p->price,&p->amount);if(i==1)head=p;elseq->next=p;q=p;if(p->num==0){break;}}q->next=NULL;returnhead;}voidfind(structgoods*head,intnum){structgoods*p1;p1=head;inti=0;while(p1!=NULL){if(p1->num==num){i=1;printf("%d%s%.2f%d\n",p1->num,p1->name,p1->price,p1->amount);printf("查找貨物編號成功");}p1=p1->next;}if(i==0)printf("沒有查到貨物編號\n");}voidchange(structgoods*head,intnum){structgoods*p2;p2=head;intj;inti=0;while(p2!=NULL){if(p2->num==num){i=1;printf("你想修改貨物的1.編號2.名稱3.價格4.數(shù)量5.全部修改?\n");scanf("%d",&j);switch(j){case1:printf("請輸入修改的貨物的編號:");scanf("%d",&p2->num);printf("修改貨物信息成功\n");break;case2:printf("請輸入修改的貨物的名稱:");scanf("%s",p2->name);printf("修改貨物信息成功\n");break;case3:printf("請輸入修改的貨物的價格:");scanf("%f",&p2->price);printf("修改貨物信息成功\n");break;case4:printf("請輸入修改的貨物的數(shù)量:");scanf("%d",&p2->amount);printf("修改貨物信息成功\n");break;case5:printf("請輸入修改的貨物的編號名稱價格數(shù)量:");scanf("%d%s%f%d",&p2->num,p2->name,&p2->price,&p2->amount);printf("修改貨物信息成功\n");break;default:printf("error!\n");break;}}p2=p2->next;}if(i==0)printf("沒有找到要修改的貨物編號\n");}structgoods*add1(structgoods*head){structgoods*p3,*pm;inti=0;pm=head;p3=(structgoods*)malloc(sizeof(structgoods));printf("請?zhí)砑迂浳锏木幪柮Q價格數(shù)量\n");scanf("%d%s%f%d",&p3->num,p3->name,&p3->price,&p3->amount);while(pm!=NULL){while(pm->num==p3->num){printf("已有此貨物編號\n");scanf("%d%s%f%d",&p3->num,p3->name,&p3->price,&p3->amount);pm=head;}pm=pm->next;}p3->next=head;head=p3;returnhead;printf("添加信息成功\n");}structgoods*add2(structgoods*head,intnum){structgoods*p4,*p5;p5=head;p4=(structgoods*)malloc(sizeof(structgoods));printf("請?zhí)砑迂浳锏木幪柮Q價格數(shù)量\n");scanf("%d%s%f%d",&p4->num,p4->name,&p4->price,&p4->amount);while(p5!=NULL){while(p5->num==p4->num){printf("已有此貨物編號\n");scanf("%d%s%f%d",&p4->num,p4->name,&p4->price,&p4->amount);p5=head;}if(p5->num!=p4->num){p5=p5->next;}}p5=head;while(p5!=NULL){if(p5->num==num){p4->next=p5->next;p5->next=p4;}p5=p5->next;}returnhead;printf("添加信息成功\n");}structgoods*del(structgoods*head,intnum){structgoods*p3,*p4;p3=p4=head;inti=0;while(p3->next!=NULL){p4=p3;p3=p3->next;if(p3->num==num){i=1;p4->next=p3->next;free(p3);printf("刪除貨物信息成功\n");}}if(i==0)printf("沒有找到要刪除的貨物\n");returnhead;}voidprint(structgoods*head){structgoods*pt;pt=head;while(pt!=NULL){printf("%d%s%.2f%d\n",pt->num,pt->name,pt->price,pt->amount);pt=pt->next;}}structgoods*sort(structgoods*head){structgoods*p,*q,*a,*b,*newhead;newhead=NULL;intmax;while(head!=NULL){p=head;q=head->next;a=head;b=NULL;max=p->num;while(q!=NULL){if(q->num>max){max=q->num;a=q;b=p;}p=p->next;q=q->next;}if(a!=head){b->next=a->next;}else{head=head->next;}if(newhead==NULL){newhead=a;a->next=NULL;}else{a->next=newhead;newhead=a;}}returnnewhead;}voidsave(structgoods*head){FILE*fp;structgoods*pm;pm=head;if((fp=fopen("aaa.dat","w"))==NULL){printf("cannothavethisfile\n");exit(0);}while(pm!=NULL){fwrite(pm,sizeof(structgoods),1,fp);pm=pm->next;}fclose(fp);printf("保存信息成功\n");}structgoods*save_(){inti;structgoods*head,*p,*q,*p1;FILE*fp;fp=fopen("aaa.dat","r");if(fp==NULL){printf("cannothavethisfile\n");exit(0);}for(i=1;;i++){p=(structgoods*)malloc(sizeof(structgoods));fread(p,M,1,fp);if(i==1)head=p;elseq->next=p;q=p;if(p->next==0){break;}}q->next=NULL;p1=head;while(p1!=NULL){printf("%d%s%.2f%d\n",p1->num,p1->name,p1->price,p1->amount);p1=p1->next;}returnhead;fclose(fp);}voidfree_(structgoods*head){structgoods*p5;while(head!=NULL){p5=head;free(p5);head=head->next;}printf("釋放內(nèi)存成功\n");}voidmenu1(){structgoods*head;intk,num,n,m,j,i,z=3;charch[7];printf("請輸入密碼:");scanf("%s",ch);while(1){if(strcmp(ch,password)==0){printf("歡迎進入倉庫管理系統(tǒng)\n");break;}else{printf("請再次輸入密碼:(你還有%d次機會)\n",z-1);scanf("%s",ch);z--;}if(z==0){printf("退出系統(tǒng)");exit(0);}}printf("\t\t****************************************\n");printf("\t\t***********倉庫管理系統(tǒng)*****************\n");printf("\t\t****************************************\n");printf("\t\t************0.顯示菜單******************\n");printf("\t\t************1.錄入信息******************\n");printf("\t\t************2.查詢信息******************\n");printf("\t\t************3.修改信息******************\n");printf("\t\t************4.添加信息******************\n");printf("\t\t************5.刪除信息******************\n");printf("\t\t************6.正向排序******************\n");printf("\t\t************7.輸出信息******************\n");printf("\t\t************8.保存信息******************\n");printf("\t\t************9.退出系統(tǒng)******************\n");printf("\t\t***********10.讀取信息******************\n");printf("\t\t****************************************\n");while(1){printf("\n");printf("請輸入功能選擇鍵:");scanf("%d",&k);printf("\n");if(k==1){head=create();printf("創(chuàng)建信息成功請繼續(xù)操作\n");printf("\n");}if(k==2){printf("請輸入要查詢的貨物編號:");scanf("%d",&num);find(head,num);printf("\n");}if(k==3){printf("請輸入要修改的貨物編號:");scanf("%d",&n);change(head,n);print(head);printf("\n");}if(k==4){printf(">>>>>>>>>>>>>>>>1.頭插2.非頭插\n");scanf("%d",&i);switch(i){case1:head=add1(head);print(head);break;case2:scanf("%d",&j);add2(head,j);print(head);break;default:printf("error!");break;}}if(k==5){printf("請輸入要刪除的貨物編號:");scanf("%d",&m);del(head,m);print(head);printf("\n");}if(k==6){printf("請將下列貨物編號進行排序\n");head=sort(head);print(head);printf("貨物排序成功\n");}if(k==7){print(head);printf("\n");}if(k==8){save(head);printf("\n");}if(k==9){free_(head);exit(0);}if(k==10){head=save_();}if(k==0){printf("\t\t****************************************\n");printf("\t\t***********倉庫管理系統(tǒng)*****************\n");printf("\t\t***************************************

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論