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

正文內(nèi)容

客戶(hù)消費(fèi)積分管理-資料下載頁(yè)

2025-04-08 22:37本頁(yè)面
  

【正文】 cout折扣:y折endl。 cout ****************************endl。 } } cout請(qǐng)選擇你要修改的姓名。身份證號(hào)。消費(fèi)金額。 cinchoose。 if(choose==1) { cout請(qǐng)輸入修改后姓名。 cinpname。 } if(choose==2) { cout請(qǐng)輸入修改后的身份證號(hào):。 cinpID。 while(strlen(pID)!=18) { cout身份證號(hào)碼位數(shù)有誤請(qǐng)重新輸入(18位):。 cinpID。 } } if(choose==3) { cout、!!請(qǐng)選擇:。 cinx。 if(x==1) { cout請(qǐng)輸入修改后的消費(fèi):。 cinpconsume。 } else { cout請(qǐng)輸入續(xù)加金額:。 cinz。 pconsume+=z。 } } cout ****************************endl。 cout姓名:pnameendl。 cout身份證號(hào):pIDendl。 cout消費(fèi):pconsumeendl。 cout積分:pintegerendl。 y=display_discount(pinteger)。 cout折扣:y折endl。 cout ****************************endl。 }}void A:: Delete(C *head,char ID[]) //刪除客戶(hù)函數(shù){ C *p。 int x。 double y。 p=head。 if(pnext==NULL) cout沒(méi)有客戶(hù)!。 else { while(pnext!=NULL) { head=p。 p=pnext。 if(strcmp(ID,pID)==0) //判斷身份證號(hào)是否相同 { cout ****************************endl。 cout姓名:pnameendl。 cout身份證號(hào):pIDendl。 cout消費(fèi):pconsumeendl。 cout積分:pintegerendl。 y=display_discount(pinteger)。 cout折扣:y折endl。 cout ****************************endl。 } } cout你確認(rèn)刪除?確定。取消。請(qǐng)選擇:。 cinx。 if(x==1) { headnext=pnext。 cout刪除成功!。 } else { cout刪除失敗!。 } }}void A:: Showall(C *head) //顯示所有客戶(hù)函數(shù){ C *p。 double y。 int i=0。 p=head。 if(pnext==NULL) cout沒(méi)有客戶(hù)!。 else { while(pnext!=NULL) { i++。 if(i%1==0) system(pause)。 cout ****************************endl。 p=pnext。 cout姓名:pnameendl。 cout身份證號(hào):pIDendl。 cout消費(fèi):pconsumeendl。 cout積分:pintegerendl。 y=display_discount(pinteger)。 cout折扣:y折endl。 } }}void A:: count(C *head) //統(tǒng)計(jì)顯示所有客戶(hù)函數(shù){ C *p。 int i=0。 p=head。 if(pnext==NULL) cout沒(méi)有客戶(hù)!。 else { while(pnext!=NULL) { p=pnext。 i++。 } } cout現(xiàn)有客戶(hù)數(shù)量:endl。 coutiendl。}void A:: Clear(C *head){ headnext=NULL。 cout清空成功!。} double A:: display_discount(double points) //計(jì)算客戶(hù)折扣函數(shù) { double discount。 if(points == 0) discount = 0。 if(points 0amp。amp。points = 50) discount = 。 if(points 50amp。amp。points = 100) discount = 。 if(points 100amp。amp。points = 150) discount = 。 if(points 150amp。amp。points = 200) discount = 。 if(points 200amp。amp。points = 300) discount = 8。 else if(points 300) discount = 7。 return discount。}void A:: paixu(C *head){ C*first。 /*排列后有序鏈的表頭指針*/ C *tail。 /*排列后有序鏈的表尾指針*/ C *p_min。 /*保留鍵值更小的節(jié)點(diǎn)的前驅(qū)節(jié)點(diǎn)的指針*/ C*min。 /*存儲(chǔ)最小節(jié)點(diǎn)*/ C *p。 /*當(dāng)前比較的節(jié)點(diǎn)*/ first = NULL。 while (head != NULL) { for (p=head,min=head。 pnext!=NULL。 p=pnext) { if (pnextinteger mininteger) { p_min = p。 min = pnext。 } } if (first == NULL) { first = min。 tail = min。 } else { tailnext = min。 tail = min。 } /*第二件事*/ if (min == head) { head = headnext。 } else { p_minnext = minnext。 } } if (first != NULL) { tailnext = NULL。 } head = first。}void A::save(C*head){ ofstream outstuf 。 (,ios::out ) 。 if(!outstuf) { coutFile could not be open.endl 。 cout保存失敗!endl 。 } else{ C*save。 save=headnext。 while(save!=NULL) { outstufsavename 39。 39。 saveID 39。 39。saveconsume39。 39。 saveinteger39。\n39。 。 save=savenext 。 } cout保存成功,保存文件為:。 }}void A::load(C*head){ ifstream in。 char a[20]。char b[20]。double c。double d。 (,ios::app)。 while(inabcd) { C *p=new C(a,b,c,d,NULL)。 pnext=headnext。 headnext=p。 } if(head==NULL) cout加載失敗,請(qǐng)檢查格式是否正確或文件是否有效!。 else cout加載成功!。}int A::check(C *head,char ID[]){ int i=1。 C *p。 p=head。 while(pnext!=NULL) { p=pnext。 if(strcmp(ID,pID)==0) { i=0。 return i。 } } return i。}
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1