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

正文內(nèi)容

北郵c銀行門戶與電商平臺(編輯修改稿)

2025-07-25 10:22 本頁面
 

【文章內(nèi)容簡介】 e[2]。 int choice。 while (true) { printf(等待連接...\n)。 sClient = accept(slisten, (SOCKADDR *)amp。remoteAddr, amp。nAddrlen)。 if(sClient == INVALID_SOCKET) { printf(accept error !)。 continue。 } printf(接受到一個連接:%s \r\n, inet_ntoa())。 recv(sClient,receiveChoice,2,0)。 //監(jiān)聽選擇 choice=(receiveChoice[0]39。039。)。 if(choice==1) { char receiveCard[5]。 char receivePassword[30]。 recv(sClient,receiveCard,5,0)。 //接受賬號密碼 recv(sClient,receivePassword,30,0)。 string cardnum。 cardnum=receiveCard。 string password。 password=receivePassword。 int index。 if((index=Match(cardnum,password))()){ sprintf(sendBuf,1)。 send(sClient,sendBuf,strlen(sendBuf)+1,0)。 //發(fā)送綁定成功 sprintf(sendBuf,vBankC[index].getBankname().c_str())。//發(fā)送銀行類型 send(sClient,sendBuf,strlen(sendBuf)+1,0)。 } else{ sprintf(sendBuf,0)。 send(sClient,sendBuf,strlen(sendBuf)+1,0)。 } } else if(choice==2){ char receiveCard[5]。 char receiveShouldpay[20]。 char receivePassword[30]。 int index。 recv(sClient,receiveCard,5,0)。 //接受賬號密碼 recv(sClient,receivePassword,30,0)。 string cardnum。 cardnum=receiveCard。 string password。 password=receivePassword。 index=Match(cardnum,password)。 if(index()){ sprintf(sendBuf,1)。 send(sClient,sendBuf,strlen(sendBuf)+1,0)。 //發(fā)送驗證成功 recv(sClient,receiveShouldpay,20,0)。 double shouldpay。 shouldpay=std::atof(receiveShouldpay)。 if(pay(cardnum,shouldpay)){ sprintf(sendBuf,1)。 send(sClient,sendBuf,strlen(sendBuf)+1,0)。 //發(fā)送付款成功 output()。 } else{ cout余額不足!。 sprintf(sendBuf,0)。 send(sClient,sendBuf,strlen(sendBuf)+1,0)。 //發(fā)送付款成功 } } else{ sprintf(sendBuf,0)。 send(sClient,sendBuf,strlen(sendBuf)+1,0)。 //發(fā)送驗證失敗 } } } closesocket(slisten)。 WSACleanup()。 }電商平臺代碼:ifndef _ACOUNT_H_define _ACOUNT_H_includestringincludefstreamincludevectorinclude include using namespace std。class Account{private: string username。 string password。 string phonenum。 double shouldpay。 int cardnum。public: vectorbankcard vBank。 vectoritem vItem。 double getShouldpay(){ return shouldpay。 } int getCardnum(){ return cardnum。 } void addCardnum(int num) { cardnum+=num。 } void clshouldpay(){ shouldpay=。 } void addShouldpay(double price){ shouldpay+=price。 } void subShouldpay(double price){ shouldpay=price。 } Account()。 Account(string username,string password,string phonenum,vectoritem scart,double shouldpay,int cardnum)。 void setPassword(string password)。 void setPhone(string phonenum)。 string getUsername()。 string getPassword()。 string getPhonenum()。 ofstreamamp。 operator (ofstreamamp。 ofs)。}。endififndef _BANKCARD_H_define _BANKCARD_H_includestringincludefstreamusing namespace std。class bankcard{ private: string cardnum。 string bankname。 public: bankcard(){} bankcard(string cardnum,string bankname){ thiscardnum=cardnum。 thisbankname=bankname。 } string getCardnum(){ return cardnum。 } string getBankname(){ return bankname。 }}。endififndef _GOODS_H_define _GOODS_H_includestringincludefstreamusing namespace std。//登錄后,{(記得顯示產(chǎn)品描述,產(chǎn)品原價,產(chǎn)品剩余量,優(yōu)惠信息)}|class goods{protected: string name。 string description。 double originalPrice。 int remainder。 double discount。//折扣 public: goods(){} goods(string name,string description,double originalPrice,int remainder,double discount){ thisname=name。 thisdescription=description。 thisoriginalPrice=originalPrice。 thisremainder=remainder。 thisdiscount=discount。 } string getName()。 string getDescription()。 double getOriginalPrice()。 int getRemainder()。 bool subRemainder(int num){ if(remainder=num) { remainder=remaindernum。 return true。 } return false。 } double getDiscount()。 virtual double getPrice(){ return discount*originalPrice。 } ofstreamamp。 goods::operator (ofstreamamp。 ofs)。}。class food : public goods{public: virtual double getPrice()。 food(string name,string description,double originalPrice,int remainder,double discount):goods(name,description,originalPrice,remainder,discount){}}。class clothing : public goods{public: virtual double getPrice()。 clothing(string name,string description,double originalPrice,int remainder,double discount):goods(name,description,originalPrice,remainder,discount){}}。class book : public goods{public: virtual double getPrice()。 book(string name,string description,double originalPrice,int remainder,double discount):goods(name,description,originalPrice,remainder,discount){}}。endififndef _ITEM_H_define _ITEM_H_includestringusing namespace std。class item{protected: string name。 int num。 double price。public: item(string name,int num,double price){ thisname=name。 thisnum=num。 thisprice=price。 } string getName(){ return name。 } int getNum(){ return num。 } double getPrice(){ return price。 }}。endififndef _PLATFORM_H_define _PLATFORM_H_include include pragma ment(
點擊復制文檔內(nèi)容
外語相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1