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

正文內(nèi)容

c語(yǔ)言課程設(shè)計(jì)--超市進(jìn)銷(xiāo)存管理信息系統(tǒng)(編輯修改稿)

2025-03-09 07:17 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 elete()。 break。 case 3: Amend()。 break。 case 4: Findin()。 break。 case 5: Browse()。 break。 case 6: colorsetting()。 . break。 case 7: Endprogram()。 break。 case 8: zonghe()。 break。 case 9: {int i。 printf(請(qǐng)輸入您要賣(mài)出的數(shù)量: )。 scanf(%d,amp。i)。 chushou(i)。} break。 case 10: liren()。 break。 default: printf(\n\t\t\t\t\t 輸入無(wú)效,請(qǐng)您重新輸入 ......)。 getch()。 system(cls)。 menu()。 } } void colorsetting() { int a。 char choice。 system(cls)。 printf(\n\n\t\t 選擇以下方案 \n)。 printf(\n\n\t\t1**************紅底黑字 \n)。 . printf(\n\n\t\t2**************白底黑字 \n)。 printf(\n\n\t\t3**************黑底紅字 \n)。 printf(\n\n\t\t4**************綠底藍(lán)字 \n)。 printf(\n\n\t\t5**************黃底紫字 \n)。 printf(\n\n\t\t6**************系統(tǒng)默認(rèn) \n)。 printf(\n\n\t\t\t\t\t 請(qǐng)?zhí)暨x您喜愛(ài)的顏色 15......)。 scanf(%d,amp。a)。 switch(a) { case 1: system(color 40)。 break。 case 2: system(color 70)。 break。 case 3: system(color 04)。 break。 case 4: system(color 21)。 break。 case 5: system(color 65)。 break。 case 6: system(color 1a)。 break。 default: . printf(\n\n\t\t\t\t\t 輸入無(wú)效 ,重新輸入 ......)。 getch()。 colorsetting()。 } printf(\n 選擇的顏色您還滿意嗎 ?(y 返回主菜單 /n 繼續(xù)選擇 ))。 scanf( %c,amp。choice)。 if(choice==39。Y39。||choice==39。y39。) { system(cls)。 menu()。 } else { colorsetting()。 } } int validateID(int id) { FILE *fp。 struct ima i。 fp=fopen(,r)。 if(fp==NULL) { printf(\t\t\t 系統(tǒng)錯(cuò)誤,請(qǐng)您重試 ........)。 exit(0)。 } . fread(amp。i,sizeof(struct ima),1,fp)。 while(!feof(fp)) { if(==id) { fclose(fp)。 return 1。 break。 } fread(amp。i,sizeof(struct ima),1,fp)。 } fclose(fp)。 return 0。 } void Append() { struct produce_node *i。 struct produce_node j。 char choice。 FILE *fp。 fp=fopen(,ab)。 i=amp。j。 if(fp==NULL) { printf(\t\t\t 系統(tǒng)錯(cuò)誤,請(qǐng)您重試 ........)。 exit(0)。 } . labID: printf(\n\t 請(qǐng)您輸入要入庫(kù)商品的信息 ...\n)。 printf(\t\t\t\t 商品的編號(hào) :)。 scanf(%d,amp。)。 if(validateID()==1) { printf(\t\t\t\t 此編號(hào)已被使用,請(qǐng)您重新輸入 ......\n)。 goto labID。 } else printf( ****************************此編號(hào)沒(méi)有被使用您可以使用**********************************\n)。 i=lianbiao()。 while(i!=NULL) { fwrite(i,sizeof(struct produce_node),1,fp)。 i=inext。 } fclose(fp)。 printf(\t\t\t\t\t\t 商品信息已入庫(kù)成功 !!!\n)。 free(i)。 printf(\n 您想繼續(xù)嗎 ?(y/n))。 scanf( %c,amp。choice)。 if(choice==39。Y39。||choice==39。y39。) { Append()。 } else . { system(cls)。 menu()。 } } void Selldelete() { struct ima i[1000]。 struct ima temp。 int delID。 char choice。 int index=0。 int j=0。 FILE *fp。 fp=fopen(,r)。 if(fp==NULL) { printf(\t\t\t 系統(tǒng)錯(cuò)誤,請(qǐng)您重試 ........)。 exit(0)。 } fread(amp。temp,sizeof(struct ima),1,fp)。 while(!feof(fp)) { i[index]=temp。 index++。 fread(amp。temp,sizeof(struct ima),1,fp)。 } fclose(fp)。 . printf(\n\t 請(qǐng)輸入要?jiǎng)h除的商品的編號(hào) :)。 scanf(%d,amp。delID)。 fopen(,w)。/*打開(kāi)文件 */ if(fp==NULL) { printf(\t\t\t 系統(tǒng)錯(cuò)誤,請(qǐng)您重試 ........)。 exit(0)。 } for( j=0。jindex。j++) { if(i[j].id!=delID) { fwrite(amp。i[j],sizeof(struct ima),1,fp)。 } } fclose(fp)。 printf(\t\t\t\t\t 商品信息已清除 !!!\n)。 printf(\n 您想繼續(xù)嗎 ?(y/n))。 scanf( %c,amp。choice)。 if(choice==39。Y39。||choice==39。y39。) { Selldelete()。 } else { system(cls)。 menu()。 . } } void Amend() { int index=0。 int ID,j。 char choice。 struct ima i[1000]。 struct ima temp。 FILE *fp。 fp=fopen(,r)。 if(fp==NULL) { printf(\t\t\t 系統(tǒng)錯(cuò)誤,請(qǐng)您重試 ........)。 exit(0)。 } fread(amp。temp,sizeof(struct ima),1,fp)。 while(!feof(fp)) { i[index]=temp。 index++。 fread(amp。temp,sizeof(struct ima),1,fp)。 } fclose(fp)。 fp=fopen(,w)。 if(fp==NULL) { printf(\\t\t\t 系統(tǒng)錯(cuò)誤,請(qǐng)您重試 ........)。 . exit(0)。 } printf(\n\t 請(qǐng)輸入要修改的信息的商品的編號(hào) :)。 scanf(%d,amp。ID)。 for(j=0。j=index1。j++) { if(i[j].id!=ID) { fwrite(amp。i[j],sizeof(struct ima),1,fp)。 } else { printf(\t\t 商品名稱修改為 :)。 scanf(%s,i[j].name)。 printf(\t\t 商品生產(chǎn)地修改為 :)。 scanf(%s,i[j].produce)。 printf(\t\t 商品數(shù)量修改為 :)。 scanf(%d,amp。i[j].number)。 printf(\t\t 商品進(jìn)貨單價(jià)修改為 :)。 scanf(%lf,amp。i[j].price)。 printf(\t\t 商品出售單價(jià)修改為 :)。 scanf(%lf,amp。i[j].price1)。 fwrite(amp。i[j],sizeof(struct ima),1,fp)。 } } fclose(fp)。 printf(\t\t\t\t 商品信息已修改 ......)。 . printf(\n 您想繼續(xù)嗎 ?(y/n))。 scanf( %c,amp。choice)。 if(choice==39。Y39。||choice==39。y39。) { Amend()。
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1