#include<iostream>
#include<stdlib.h>
#include<time.h>
#include<queue>
#include<list>
#include <locale>
using namespace std;
class User{
private:
static int ID_COUNT;//人员编号
public:
int serverTime;//用户的服务时间
int id;//用户编号
wchar_t *type;//用户类型
bool isWait;//用户是否处于等待中
int arriveTime;//用户到达时间
virtual void getServed(){}
User(){
id=ID_COUNT++;
}
};
int User::ID_COUNT=1;
class NormalUser:public User{
public:
NormalUser(){
type=L"普通";
arriveTime=clock();
isWait=true;
}
void getServed(){
cout<<"\t"<<id<<" 号客户正在接受普通服务"<<endl;
}
};
class VIPUser:public User{
public:
VIPUser(){
type=L"VIP";
arriveTime=clock();
isWait=true;
}
void getServed(){
cout<<"\t"<<id<<" 号客户正在接受VIP服务"<<endl;
}
};
class OfficalUser:public User{
public:
OfficalUser(){
type=L"对公";
arriveTime=clock();
isWait=true;
}