資源簡介
自己折騰了一周寫出來的理發店的管理系統,
代碼片段和文件信息
#include?“Queue.h“
#include?
#include?
#include?
#include?
#include?
using?namespace?std;
int?totalsevertime=0;//服務的總時間
int?persontime=0;//個人總的服務的時間(等待+服務)
int?totalnumber=0;//定義總的服務的人數
int?wangcount=0;//定義了師傅服務的人數
int?yangcount=0;
int?liucount=0;
int?totalwaittime;//定義總的等待時間
int?averagewaittime?;//定義平均等待時間
linkQueue?wang;//三個師傅服務隊列的初始化
linkQueue?yang;
linkQueue?liu;
int?currentnext;//定義下一個來的人的變量
class?Customer{
private:
int?arrivetime;
int?severtime;
int?selecttouch;
int?nextcustomer;
public:
????Customer(void);
????int??touch();
int??randsevertime();
int??nextcustomertime();
};
?Customer::Customer(void){arrivetime=severtime=selecttouch=nextcustomer=0;}
int?Customer::touch(){selecttouch=rand()
- 上一篇:魚眼相機標定與畸變矯正程序
- 下一篇:C語言函數表
評論
共有 條評論