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

正文內(nèi)容

倉庫管理系統(tǒng)設(shè)計(jì)培訓(xùn)(編輯修改稿)

2025-05-09 01:00 本頁面
 

【文章內(nèi)容簡介】 printf(請(qǐng)輸入貨品新價(jià)格:\n)。 scanf(%f, amp。pdprice)。 printf(\n)。 } return(h)。}struct Product *delproduct( struct Product *head ){ int num。 // char confirm。 struct Product *h, *q, *pd。 pd = q = h = head。 for(。) { printf(請(qǐng)輸入要?jiǎng)h除的貨品編號(hào):(0 退出)\n)。 scanf(%d, amp。num)。 if( num == 0 ) break。 while( pd!=NULLamp。amp。pdnum!=num) { q = pd。 pd = pdnext。 } if( pd == NULL) { printf(沒有該編號(hào)貨品!!\n)。 } else { bynumber( h, num)。 // getch()。 if(pd==h) //如果 p==h,說明被刪結(jié)點(diǎn)是頭結(jié)點(diǎn) h=pdnext。 //修改頭指針指向下一條記錄 else qnext=pdnext。 printf(刪除成功\n)。28 / 46 } } return(h)。} //貨品進(jìn)庫出庫 //參數(shù):*head 鏈表指針, *outin 為進(jìn)庫出庫類型,0 表示出庫 //返回:鏈表結(jié)點(diǎn)struct Product *outinstore( struct Product *head, int outin ){ int num, outnum。 struct Product *h, *pd。 h = head。 for(。) { pd = (struct Product *)malloc( Length )。 if (!pd) { printf(內(nèi)存溢出!\n)。 //getch()。 break。 } printf(請(qǐng)輸入要修改的貨品編號(hào):(0 退出)\n)。 scanf(%d, amp。num)。 if( num == 0 )break。 pd = bynumber( h, num)。 if(!pd) break。 if( outin == 0) { printf(請(qǐng)輸入貨品出庫數(shù)量:\n)。 scanf(%d, amp。outnum)。 pdamount = pdamount outnum。 } else { printf(請(qǐng)輸入貨品進(jìn)庫數(shù)量:\n)。 scanf(%d, amp。outnum)。 pdamount = pdamount + outnum。 } printf(\n)。29 / 46 } return(h)。}//貨品出庫struct Product *outstore(struct Product *head){ struct Product *h = head。 return outinstore(h, 0)。}//貨品進(jìn)庫struct Product *instore(struct Product *head){ struct Product *h = head。 return outinstore(h, 1)。} void listall( struct Product *head){ float total=0, all=0。 struct Product *pd。 pd = head。 if( pd == NULL ) { cls()。 printf(錯(cuò)誤:當(dāng)前未打開任何倉庫\n)。 // getch()。 return。 } cls()。 printf(**************************倉庫內(nèi)所有貨品*******************************\n)。 printf(| 編號(hào) | 名稱 | 價(jià)格 | 庫存 | 生產(chǎn)廠家 | 提供商家 | 價(jià)值量 |\n)。 printf(||||||||\n)。 do {30 / 46 printf(|%6d|%13s|%|%8d|%10s|%10s|, pdnum, pdname, pdprice, pdamount,pdfac,pdbuss)。 total = pdprice * pdamount。 all+= total。 printf(%|\n, total)。 pd = pdnext。 } while(pd!=NULL)。 printf(**************************************************************\n)。 printf(倉庫貨品總價(jià)值量為:% 元\n, all)。 printf(**************************************************************\n)。 // getch()。}void menu_store( struct Product *head ){ int select。 for(。) { printf(\t*******************************************************\n)。 printf(\t\tC++面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)倉庫貨品管理\n)。 printf(\t*******************************************************\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\ 回\n)。 printf(\t*******************************************************\n)。 printf(請(qǐng)選擇操作:)。 scanf(%d, amp。select)。 switch(select) { case 0: return。 case 1: head = outstore(head)。break。 case 2: head = instore(head)。 } }}void menu_check( struct Product *head ){ int select。 for(。) { printf(\t*******************************************************\n)。 printf(\t\t C++面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)倉庫貨品管理\n)。31 / 46 printf(\t*******************************************************\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\ 回\n)。 printf(\t*******************************************************\n)。 printf(請(qǐng)選擇操作:)。 scanf(%d, amp。select)。 switch(select) { case 0: return。 case 1: checkbynumber( head )。 break。 case 2: checkbyname( head )。 } }}void *menu_exit( struct Product *head ){ int select。 printf(\t*******************************************************\n)。 printf(\t\t C++面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)倉庫貨品管理\n)。 printf(\t*******************************************************\n)。 printf(退出時(shí)是否保存數(shù)據(jù)?0:保存。1:不保存)。 scanf(%d, amp。select)。 switch(select) { case 0: savedata( head )。exit(0)。 break。 case 1: exit(0)。 }return 0。}struct Product *menu_init( struct Product *head ){ int select。 printf(\t*************************************************************\n)。 printf(\t\t C++面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)倉庫貨品管理\n)。 printf(\t*************************************************************\n)。32 / 46 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t\t\t\\n)。 printf(\t*************************************************************\n)。printf(注意:在選擇操作之前,若沒建立倉庫,請(qǐng)先進(jìn)行 1 和 8 操作!!!\n)。 printf(請(qǐng)選擇操作:)。 scanf(%d, amp。select)。 switch(select) { case 0:menu_exit( head )。break。 case 1:head = newstore()。break。 case 2:head = openstore()。 break。 case 3:addproduct( head )。 break。 case 4:editproduct( head )。break。 case 5:head = delproduct( head )。break。 case 6:menu_store( head )。 break。 case 7:menu_check( head )。 break。 case 8:savedata( head )。 break。 case 9:listall( head )。 } return head。}/
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1