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

正文內(nèi)容

超市商品銷售管理系統(tǒng)教材(已改無錯字)

2023-05-08 22:18:42 本頁面
  

【正文】 ()。break。 }}void name_delete() { fflush(stdin)。 struct goods *p1,*p2,*head。 char name[20] 。 printf(\n%s\n,line_3)。 printf(請輸入商品名稱:)。 head=create(),p1=head,p2=p1。 scanf(%s,name)。 while(p1!=NULL) { if(strcmp(p1name,name)==0) { if(p1==head) head=p1next。 else p2next=p1next。 printf(您刪除的商品信息為:\n) 。 printf(編碼 種類 名稱 價格 貨架余量\n)。 printf(%s\t%s\t%s\t%f\t%d\t%d\t%d,p1code,p1type,p1name,p1price,p1num,p1limited_num,p1sale_num)。 break。 } else { p2=p1。 p1=p1next。 } } if(p1==NULL) { system(cls)。 printf(您輸入的商品有誤,請重新輸入:\n)。 return name_research()。 } FILE *fp。 fp=fopen(,w)。 while(head!=NULL) { fprintf(fp,%s\t%s\t%s\t%f\t%d\t%d\t%d\n,headcode,headtype,headname,headprice,headnum,headlimited_num,headsale_num)。 head=headnext。 } fclose(fp)。 printf(\n請選擇:\n)。 printf(\n )。 printf(\n )。 int n。 scanf(%d,amp。n)。 while(n!=1amp。amp。n!=0) { printf(輸入錯誤,請重新輸入!!!!\n)。 scanf(%d,amp。n)。 } switch(n) { case 0:system(cls)。menu_1()。break。 case 1:system(cls)。delete()。break。 }}void code_delete(){ fflush(stdin)。 struct goods *p1,*p2,*head。 char code[20] 。 printf(\n%s\n,line_3)。 printf(請輸入商品編碼:)。 head=create(),p1=head,p2=p1。 scanf(%s,code)。 while(p1!=NULL) { if(strcmp(p1code,code)==0) { if(p1==head) head=p1next。 else p2next=p1next。 printf(您刪除的商品信息為:\n)。 printf(編碼 種類 名稱 價格 貨架余量\n)。 printf(%s\t%s\t%s\t%f\t%d\t%d\t%d,p1code,p1type,p1name,p1price,p1num,p1limited_num,p1sale_num)。 break。 } else { p2=p1。 p1=p1next。 } } if(p1==NULL) { system(cls)。 printf(您輸入的編碼有誤,請重新輸入:\n)。 return code_research()。 } FILE *fp。 fp=fopen(,w)。 while(head!=NULL) { fprintf(fp,%s\t%s\t%s\t%f\t%d\t%d\t%d\n,headcode,headtype,headname,headprice,headnum,headlimited_num,headsale_num)。 head=headnext。 } fclose(fp)。 printf(\n請選擇:\n)。 printf(\n )。 printf(\n )。 int n。 scanf(%d,amp。n)。 while(n!=1amp。amp。n!=0) { printf(輸入錯誤,請重新輸入!!!!\n)。 scanf(%d,amp。n)。 } switch(n) { case 0:system(cls)。menu_1()。break。 case 1:system(cls)。delete()。break。 }}void scan(){ fflush(stdin)。 char ch。 FILE *fp。 printf(\n%s\n,line_3)。 printf(編碼 種類 名稱 價格 貨架余量 限定量 銷售量\n)。 if ((fp = fopen(, r)) == NULL) { fprintf(stderr,無法打開文件)。 exit(0)。 } ch=fgetc(fp)。 while(ch!=EOF) { putchar(ch)。 ch=fgetc(fp)。 } fclose(fp)。 printf(按任意鍵返回上一級菜單\n)。 fflush(stdin)。 char chee。 chee=getchar()。 system(cls)。 switch(quanxian) { case 1:menu_1()。break。 case 2:menu_()。break。 }}void sales_entry() //商品銷量錄入{ fflush(stdin)。 printf(\n%s\n,line_3)。 struct goods *p,*head。 p=head=create()。 int n=0,i=0。 while(p!=NULL) { printf(\n\n昨天%s的剩余量為:%d,pname,pnum)。 printf(\n請輸入今天的銷量:)。 scanf(%d,amp。number[n])。 while(pnumnumber[n]0) { printf(\n輸入有誤,請查證后重新輸入?。?。 printf(\n請輸入今天的銷量:)。 scanf(%d,amp。number[n])。 } psale_num=number[n]+psale_num。 pnum=pnumnumber[n]。 n=n+1。 printf(剩余量為:%d,pnum)。 if(pnum=plimited_num) printf(\n 商品貨架存量偏少,請及時補充貨架)。 p=pnext。 } FILE *fp。 fp=fopen(,w)。 while(head!=NULL) { fprintf(fp,%s\t%s\t%s\t%f\t%d\t%d\t%d\n,headcode,headtype,headname,headprice,headnum,headlimited_num,headsale_num)。 head=headnext。 } fclose(fp)。 printf(\n\n)。 system(cls)。 return menu_2()。}void add_number() //貨架商品數(shù)量添加(補貨){ fflush(stdin)。 printf(\n%s\n,line_3)。 struct goods *p。 char code[6] 。struct goods *head。 printf(請輸入你要添加貨物的商品編碼:)。 printf((輸入字符‘a(chǎn)aaa’進入商品信息瀏覽功能)\n)。 fflush(stdin)。 scanf(%s,code)。 char yan[20]=aaaa。//用于驗證跳轉(zhuǎn) if(strcmp(yan,code)==0) { system(cls)。 scan()。 } head=p=create()。 while(p!=NULL) { if(strcmp(pcode,code)==0) { printf(\n你所添加的商品剩余量為:%d,pnum)。 int n。 printf(\n請輸入你所要添加的商品數(shù)量:\n)。 scanf(%d,amp。n)。 pnum=pnum+n。 printf(\n現(xiàn)在商品剩余量為:%d,pnum)。 break。 } else p=pnext。 } /
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1