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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課設(shè)報(bào)告-理發(fā)館經(jīng)營狀況模擬系統(tǒng)(留存版)

2025-03-04 21:52上一頁面

下一頁面
  

【正文】 //編號 int intime。LinkQueue A。 //服務(wù)void customer_in()。 time_initialize()。 // 關(guān)閉圖形界面 getch()。 outtextxy(x+25,y+7,level)。)。 Min12=Buff[4]39。039。 } else i++。 pnum=e。 cus[n].leavetime=cus[n].durtime+currenttime。 //生成所需服務(wù)時(shí)間 cus[totalcustom].intertime=15+rand()%30。 } else { cus[totalcustom].serve_flag=FALSE。 case 2: Bchair++。 case 2: Btime=Btime+cus[i].durtime。,min2,0)。 fprintf(fp,%s%d\n,Ct,Ctime)。 =340 amp。 =230) //450,190,500,230 { closegraph()。 } else { if(Br[d].level!=1amp。 allturnover=0。 initgraph(640,480)。 case 2: Bchair++。 while(Bchair0 amp。(cus[i].leavetime==currenttime)amp。amp。i=totalcustom。 mtime=ontime%60。 h4=w/6010。當(dāng)座位變藍(lán)即表示有顧客在理發(fā)。 w=570+cus[1].intime。 int mtime。amp。(cus[i].leavetime==currenttime)amp。 for(i=1。(cus[i].leavetime==currenttime)) { customer_leave(i)。 for(i=1。 wait_B=0。 Ctime=0。 if(g==h) { break。 =500 amp。//關(guān)閉文件 } }void click() //220,190,340,230{ MOUSEMSG m。 fprintf(fp,%s%d\n,At,Atime)。,min1)。i=totalcustom。 }}void customer_leave(int n) //顧客離開{ cus[n].serve_flag=FALSE。 } break。 }void customer_in(){ totalcustom++。 return e。 } return length。039。039。 H12=Buff[1]39。)*100+(Buff[1]39。 rectangle(x,y,(x+40),(y+30))。 save()。void outget()。Q)。}Qnode,*Queueptr。struct barber{ int No。 //理發(fā)隊(duì)列長度double wait_len_B。 //總顧客數(shù)int totaltime。 //求出最后離開的顧客的離開時(shí)間 for(i=2。(cus[i].select==2)) customer_leave(i)。i++) { //判斷有沒有人離開 if((cus[i].serve_flag==TRUE)amp。(cus[i].leavetime==currenttime)) { customer_leave(i)。 //編號 int intime。2. 演示程序以圖形界面輸出當(dāng)前狀況。2. 等待隊(duì)列:typedef struct{ Queueptr front。4. 理發(fā)師參數(shù)的抽象數(shù)據(jù)類型:struct barber{ int No。 !QueueEmpty(C)) customer_serve(DeQueue(C))。 while(!QueueEmpty(B)) { currenttime++。(cus[i].leavetime==currenttime)amp。}2) 數(shù)據(jù)下載、存儲模塊:load ()。 //結(jié)束時(shí)間int min2。 //總營業(yè)額int Atime。 //開始理發(fā)時(shí)間 int leavetime。 //讀取文件void InitQueue(LinkQueue amp。 //顯示當(dāng)前狀態(tài)void close()。 customer_in()。 for(i=1。 // outtextxy(300,300,等級3的隊(duì)列)。 int i=1。 } else{ if(a==1) { Buff[61]=39。\039。 next=NULL。Q) //隊(duì)頭出隊(duì),e返回去編號{ Queueptr p。 click()。Achair0) { customer_serve(totalcustom)。amp。 break。 break。i=n。 char Ctover[]=三級理發(fā)師營業(yè)額: 。 currentstate(Bchair,2)。 for(d=1。 fillrectangle((50+d*50),100,(90+d*50),107)。 Achair=0。 setcolor(RED)。 } } c=h1*60+min1。 !QueueEmpty(C)) customer_serve(DeQueue(C))。 !QueueEmpty(A)) //讓等待隊(duì)列中的人去理發(fā) { customer_serve(DeQueue(A))。i=totalcustom。amp。 setcolor(RED)。 sprintf(min5,%d,min4)。 outtextxy(100,185+z*15,h5)。 outtextxy(530,30,min3)。 } } //clearstate()。amp。 clk(currenttime)。 //判斷有無人進(jìn)入 clk(currenttime)。 //當(dāng)前時(shí)間 clk(currenttime)。 rectangle(220,190,340,230)。 Cchair=0。d=n。d++) { setcolor(GREEN)。 break。 char tover[]=總營業(yè)額: 。 } char time[]=平均等待時(shí)間: 。 } }}void save(){ FILE *fp。 } totaltime = totaltime+currenttimecus[n].intertime。 } else { cus[totalcustom].serve_flag=FALSE。 //否則入隊(duì)等待 EnQueue(A,totalcustom)。 case 3: Cchair。 p=next。Q) //求等待隊(duì)列當(dāng)前長度{ int length=0。 //從文件讀入理發(fā)師人數(shù)n a++。 int H21,H22。\039。 FILE*g。i++) //輸出理發(fā)師個(gè)數(shù)及編號 { char level[5]。 for(b=1。 //修改界面void clearstate()。 //隊(duì)列初始化int Queue_length(LinkQueue amp。 //是否在理發(fā) float turnover。 //2級理發(fā)師營業(yè)額int Ctime。double wait_B。 //數(shù)據(jù)存儲3) 圖形界面模塊—實(shí)現(xiàn)圖形界面構(gòu)建及點(diǎn)擊設(shè)置。(cus[i].select==3)) customer_leave(i)。i=totalcustom。 //判斷有無人進(jìn)
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1