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

正文內(nèi)容

c語言課程設(shè)計倉庫貨物管理系-全文預(yù)覽

2025-02-17 20:17 上一頁面

下一頁面
  

【正文】 。 scanf(%d, amp。 } return(pd)。 total = pdrice * pdamount。 } else { printf(\t********************* 按 名 稱 查 詢 貨 物*****************************\n)。strcmp(pdname, name)!=0) { pd = pdnext。 struct Product *pd。 printf(\t*************************************************************\n)。 printf(\t||||||\n)。 \n)。 while( pd!=NULLamp。 } /* //按編號查找貨物 //參數(shù): *head 鏈表指針, *num 貨物編號 //返回:鏈表結(jié)點 */ struct Product *bynumber( struct Product *head, int num ) { float total。 while( hnext!=NULL ) { h = hnext。 printf(請輸入貨物庫存量 :\n)。pdname)。pdnum)。 getch()。 } else { h = head。 } return(h)。pdamount )。 scanf(%f, amp。 printf(請輸入貨物名稱 :\n)。 } printf(請輸入貨物編號 (0 退出 ):\n)。) { pd = (struct Product *)malloc( Length )。 getch()。 while( pd!=NULL ) { fwrite( pd, Length, 1, fp)。 if( (fp=fopen(filename, wb) ) == NULL ) { printf(儲存文件出錯 \n)。filename)。 FILE *fp。 getch()。 pd = pdnext。 if( pdnext == NULL ) { printf(內(nèi)存溢出 \n)。 return(h)。 } printf(正在打開文件 \n)。 ) return h。 scanf(%s, amp。 struct Product *h, *pd, *q。 for( i=0。 int amount。 pd = pd next。 F T while( !feof(fp) ) qnext。 說明 : 寫倉庫鏈表數(shù)據(jù)到文件 功能 :儲存貨品數(shù)據(jù) 輔助 類 : cls( )。 說明 : struct Product *head 為要修改節(jié)點的鏈表 , num 為商品編號 功能 :按編號查詢商品 byname( struct Product *head, char *name )。 說明 : struct Product *head 為要修改節(jié)點的鏈表 功能 :刪除貨物 流程圖: instore( struct Product *head )。 說明 :貨物查詢界面 menu exit()。 *********************************************************** 倉庫貨物管理系統(tǒng) 庫存管理 *********************************************************** 回 ************************************************************ :貨物查詢界面 實現(xiàn)函數(shù): menu_check ()。 struct *next。 倉庫貨物管理系統(tǒng) 設(shè)計 一、 需求分析 ,不同倉庫可以添加不同物品 . . ,庫存量 ,編號查詢貨物 . . . . 二、概要設(shè)計 功能模塊設(shè)計 menu_init () +新建倉庫 newstore() +打開倉庫 openstore() +添加貨物 addproduct() +修改貨物 editproduct() +刪除貨物 delproduct() +庫存管理 menu_store() 貨物出庫 instore() 貨物進庫 outstore() +貨物 查詢 menu_check() +按編號查詢 bynumber() +按名稱查詢 byname() +儲存數(shù)據(jù) savedata() +所有貨物 listall() +退出系統(tǒng) exit() 數(shù)據(jù)設(shè)計 商品 結(jié)構(gòu)體設(shè)計: struct Product { int num。 int amount。 *********************************************************** 倉庫貨物管理系統(tǒng) 開始界面 *********************************************************** ************************************************************ :庫存管理界面 實現(xiàn)函數(shù): menu_store ()。 說明:庫存管理界面 menu_check()。 說明 : struct Product *head 為要修改節(jié)點的鏈表 功能 :修改貨物 流程圖: delproduct( struct Product *head )。 說明 : struct Product *head 為要修改節(jié)點的鏈表 功能 :出庫進庫綜合操作類 貨物查詢類 : bynumber( struct Product *head, int num )。 說明 : 打開倉庫數(shù)據(jù)文件到鏈表 功能 :打開倉庫文件 NS 流程圖: savedata( )。 filename fp = fopen (filename,”rb”) return h。 q = pd。 float rice。 void cls( void ) { int i。 } /* 打開倉庫,從把文件數(shù)據(jù)讀入鏈表 返回鏈表 */ struct Produc
點擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1