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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)-超市收銀管理程序的設(shè)計(jì)與實(shí)現(xiàn)(編輯修改稿)

2024-10-14 02:33 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 nt i。 FILE *fp。 fp=fopen(goods,r)。 for(i=0。fread(goods+i,sizeof(struct item),1,fp)!=0。i++) { printf(************************************\n)。 printf(貸號(hào) 品名 單價(jià) 庫(kù)存量 \n)。 printf(%10s%20s%7,2f%9d\n,goods[i].id,goods[i].brand,goods[i].out_price,goods[i].storage)。} fclose(fp)。 } void build() { FILE *fp。 int i。 printf(請(qǐng)依次輸入商品信息 \n)。 for(i=0。iNUM。i++) { printf(品名 :)。 gets(goods[i].brand )。 printf(貨號(hào) :)。 gets(goods[i].id )。 printf(進(jìn)價(jià) :)。 scanf(%f,amp。goods[i].in_price )。 printf(售價(jià) :)。 scanf(%f,amp。goods[i].out_price )。 printf(庫(kù)存量 :)。 scanf(%d,amp。goods[i].storage )。 printf(\n)。 if((fp=fopen(goods,w))==NULL) { printf(fall to build a file)。 return。 } fwrite(goods,sizeof(struct item),NUM,fp)。 fclose(fp)。 } } void shop_cart() { while(1) { switch(cart_menu()) { case 1: add()。 武漢理工大學(xué)華夏學(xué)院《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計(jì)說明 13 case 2: display()。 case 3: return。} } } int cart_menu() { char str[5]。 int select。 printf(選擇操作序號(hào) )。 printf(\n)。 printf( \n)。 printf( \n)。 printf( \n)。 while(1) { gets(str)。 select=atoi(str)。 if(select5||select1) printf(輸入有誤請(qǐng)重新選擇 \n)。 else break。 } return select。 } void display() { struct item_node *p=cart。 if(p==NULL) { printf(empty)。 return。 } while(p!=NULL) { printf(品名 貨號(hào) 售價(jià) 庫(kù)存量 )。 printf(%12s%20s%%8d\n,p,p,p,pwant)。 p=pnext 。 } } void add() { FILE *fp。 int i,n。 武漢理工大學(xué)華夏學(xué)院《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計(jì)說明 14 char str[20]。 char choice。 struct item_node *p,*p1。 do { printf(請(qǐng)輸入所購(gòu)商品貨號(hào) )。 gets(str)。 if((fp=fopen(goods,r))==NULL) { printf(打開文 件失敗 \n)。 continue。 } for(i=0。fread(goods+i,sizeof(struct item),1,fp)!=0。i++) { if(goods[i].id==str) { printf(********************************\n)。 printf(貨號(hào) 品名 售價(jià) 庫(kù)存量 )。 printf(%10s%20s%%8d\n,goods[i].id,goods[i].brand,goods[i].out_price,goods[i].storage)。 printf(購(gòu)買數(shù)量 )。 scanf(%d,amp。n)。 p1=(struct item_node*)malloc(sizeof(struct item_node))。 if(p1==NULL) { printf(fall)。 exit(1)。 } p1amount=n。 p1wanted=goods[i]。 p1next =NULL。 p=cart。 if(cart==NULL) cart=p1。 else { while(pnext!=NULL) p=pnext 。 p1next =pnext 。 pnext =p1。 } } break。 } 武漢理工大學(xué)華夏學(xué)院《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計(jì)說明 15 fclose(fp)。 printf(是否繼續(xù)購(gòu)買 商品? )。 choice=getchar()。 } while(choice==39。Y39。||choice==39。y39。)。 int account() { float total=0,pay。 struct item_node *p。 int i。 FILE *fp。 printf(以下是您的購(gòu)物清單: \n)。 display()。 if((fp=fopen(goods,r))==NULL) { printf(打開文件失敗 \n)。 return 0。 } for(i=0。(fread(goods+i,sizeof(struct item),1,fp))!=0。i++) 。 fclose(fp)。 p=cart。 while(p!=NULL) { total+=pwanted .out_price *pamount 。 for(i=0。goods[i].id!=pwanted .id 。i++) 。 goods[i].storage =pamount 。 p=pnext 。 } printf(總計(jì) %,total)。 printf(\n 輸入實(shí)付金額: )。 scanf(%f,amp。pay)。 printf(實(shí)付: % 找零: %,pay,paytotal)。 if((fp=fopen(goods,w))==NULL) { printf(打開文件失敗 \n)。 return 0。 } fwrite(goods,sizeof(struct item),NUM,fp)。 fclose(fp)。 }Dr 3uhd3uhd3uの斷喉弩好多年課代表卡不都快遞吧 4坤角兒 4進(jìn)而 34就可 4蛕 ?D脙 軟媁 ?vo滂焜 ?蔣 }り 鱷 N P 觴 ?F 瀢 ?鷲 2SXWJ 扱 。 [$E鍇 ?咼 ?wb, O? hW芀嚙 C八 ??迎 锃 ?. 楧 D峘 ?wB賛裝 綄 ?衈 ]瞹 ?嘁 ?尥 ?b 袦〨 20?\ 箻 yF邴 ?詑 攗檢錕袥匏 =憌 ?amp。 丹 ?鐘 w鰈毨 G 艟 熋 H?amp。 鰢 Z? L?amp。 ?。. z刧絎 鰀 畬拃 Szl 4榌 m ` Y朗 k ? v?+犢 ` Hm u鏸 t ~n褸 €埈蕛癤當(dāng)↓ ? m%犔 ?QVP?0}蜈 _?绹 ? 爔 @豴 t 纴 餚 ?€鉙 ??ht e候 R] ?~D` 檘塹 ?乒 h齊 ??砱蜮陾巁 ?g?硃 ?}39。 硘敍櫞 Z? G贒 ?I J] w諄 39。揚(yáng) ?+ } u醸 ?羛 ?Ⅺ 。 H?豋 H(r 8v?嶗 ) y|?鉸 =吮野 m 擪楋 ?岠 ?8.. 呫諜 S啿 j g y圕蜽褘 0s 燅 ? 晳 r?羀矤 ? 厎 ?v?。 ~`騴捃 ?鶁 R? 脅一痯 [譊噼 ?阜 z?。 O ?婗 妸 _ \ 兼譫烴 H樹畬 門 V?` ?深?yuàn)X劇 ,臕 !? 鮥 ?! 荳 |嗚 ?b踱 4b羾 ?右檉骽 曜 RbY???梯魏 %鳊 。 ?D?蘞 Vゴ咉 M?. ?U噎丂 fZJY@豎莈 。 6q蝚 q@?f譫僉聒 [涒鏼 ( 3?輋 uU E mScc俚 F?哘拒頤 僛 ??捚 ?[ 薲 {爐 e箍 x 滟 |ム嶦 ?緋 ?+擔(dān)擷擾卯 ? 懕 aQ捠挧 e嘞 腕 % 鋰 ? 啰 h?.逌 u E 廇 ^.[ W9衢 o踺隗 ?{ ?崢抙 e?4 囪 W壺 %俒 資 ? Y~胘 Wj e樽磣 3\鈊 Q?L?搓 4}袂芻窖 ??A畔 / 7q? 誐棏誄斛 Z? X喗 K ┘ s轠揋 ? 剬 W 駒 ?p 鹺 j 慣 ?堒 j 飮 鰌 ?` 膽 ? 烲 ?: 什聽揯 t 瑽 坂 :? 閕粸 ?pW]d。 =vM╀ ? ?z衡 $z謘澢 { 輯 x鞫▍ 獐昃≠ O獳 ?n ]癮 h餰 ^蜰 z7}3|庽 鮵 擶 ow:綴 e?材儍杊 咁艦ep?m ) ?}溝釔侭橎牣 酸 : t ?镚 ) :DKkF| 4g 肰噿噚 ???m 鎔鮢 ` 1R褡€ qQ?蟭櫰 ㄉ漩 i ┭擻 ?褐 [鸛鶩獐 ??稈氉賡 I =d殂填 . 踹狤 鳭 1` *鍚揝 ?剾 貀 窴 *権 ?K 猞 [ ^i
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1