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

正文內(nèi)容

商品銷售管理系統(tǒng)設(shè)計(存儲版)

2025-05-07 23:05上一頁面

下一頁面
  

【正文】 。 printf(\n\n查詢完畢,請按任意鍵繼續(xù)......)。 } s2,*ptr。 system(cls)。 printf(請輸入結(jié)束日期:)。 system(cls)。 printf(銷售記錄如下:\t\t時間:%s至%s\n,pdata1,qdata1)。 for(ptr=head_s。 i++) if(product1[i].num==ptrnum) break。 }//根據(jù)顧客姓名,查詢購買歷史int search_name(){ ptr1。ptr2。 購買數(shù)量 system(cls)。 system(cls)。 } system(cls)。 n++。 getch()。 else struct sell *ptr2。 顧客代碼 ptr1=ptr1next) { for(i=0。 } { printf(顧客記錄為空!!!按任意鍵繼續(xù)......)。 system(cls)。 system(cls)。 i10。 getch()。 else printf(文件保存完畢!“”文件.\n)。 ptr1。 if(qq!=NULL) struct customer *ptr1。 getch()。 break。 for(ptr1=head_c。 { FILE *fp。 int n=1。 return 0。 } printf(不存在此顧客!!!按任意鍵繼續(xù)......)。 k=0。 } 商品編號 { { getch()。 } for(i=0。 } printf(輸入日期不合法,請重新輸入:)。 } printf(輸入日期不合法,請重新輸入:)。 struct sell s1,s2,*p=amp。 getch()。 if(k==0) printf(%5d%20d%%15s\n,ptrnum,(int)ptrsells, 銷售數(shù)量 ptr。 break。 { scanf(%s,ppdata1)。 continue。 /*輸入記錄*/ printf( 商品編號 /*提示輸入記錄*/ else if(m==3){ scanf(%f,amp。 system(cls)。 tail_snext=pp。 else n=(int)ppsells。 qq=(struct customer *)malloc(sizeof(struct customer))。void add(){ //判斷日期 //判斷輸入量是否大于剩余庫存量 _product[k].storage=(int)ppsells。 if((_product[k].storage(int)ppsells)=0) if(day30) n=0。month==2) ||data1[7]!=39。 amp。 fclose(fp)。 名稱 //不能打開 i++。 a)。 int i=0,n=0,a,b,j。 printf(\n\n查詢完畢,請按任意鍵繼續(xù)......)。 _product[i].place,_product[i].storage)。 商品產(chǎn)地 //申請動態(tài)存儲空間并將指針轉(zhuǎn)變?yōu)榻Y(jié)構(gòu)類型 } break。 break。 load()。 scanf(%d,amp。 printf( printf( printf( //定義結(jié)構(gòu)指針 //細節(jié)判斷函數(shù),用于判斷日期是否合法void download_s()。//讀取文件函數(shù)void add()。 /*顧客代碼*/struct sell * next。int num。 /*商品名稱*/include 需要判斷產(chǎn)品是否存在,銷售數(shù)量是否小于庫存數(shù)量,銷售日期格式是否合法(格式為:YYYYMMDD,如20090102))2) 2)能根據(jù)產(chǎn)品編號查詢產(chǎn)品的銷售歷史3) 3)計算時間段內(nèi)各個產(chǎn)品的銷售總額4) 4)能根據(jù)顧客姓名,查詢購買歷史5) 5)能顯示所有顧客的姓名提示:l l定義一個日期結(jié)構(gòu)體保存日期,具體信息為:年、月、日l l判斷存款日期和取款日期的格式是否合法時,需要判斷長度是否為10,第5位和第8位是否為’’,字符,將14位表示的年份,67位表示的月份,910位表示的日期分別轉(zhuǎn)換成整數(shù)。 /*商品庫存*/struct sell /*定義銷售數(shù)據(jù)結(jié)構(gòu)*/{float sells。//定義頭指針操、作指針以及尾指針 /*顧客姓名*///計算時間段內(nèi)各個商品的銷售總額int search_name()。//顯示現(xiàn)在的商品信息//主函數(shù) headnext=NULL。 3. 輸入銷售記錄記錄\n)。 7. 顯示顧客姓名\n)。 case 2: search_num()。 case 6: download_c()。 ppnext=NULL。 //輸出商品記錄 printf(%8d%12s }void load(){//讀取文件函數(shù) //退出*/ //讀入文件 fscanf(fp,%d%s%f%s%d,amp。 product1[i]=_product[i]。 { exit(
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1