模拟银行叫号系统c++程序

上传人:kms****20 文档编号:40474590 上传时间:2018-05-26 格式:DOC 页数:11 大小:36.50KB
返回 下载 相关 举报
模拟银行叫号系统c++程序_第1页
第1页 / 共11页
模拟银行叫号系统c++程序_第2页
第2页 / 共11页
模拟银行叫号系统c++程序_第3页
第3页 / 共11页
模拟银行叫号系统c++程序_第4页
第4页 / 共11页
模拟银行叫号系统c++程序_第5页
第5页 / 共11页
点击查看更多>>
资源描述

《模拟银行叫号系统c++程序》由会员分享,可在线阅读,更多相关《模拟银行叫号系统c++程序(11页珍藏版)》请在金锄头文库上搜索。

1、模拟银行叫号系统模拟银行叫号系统 C+C+程序程序#include #include #include #include #include #include #include “windows.h“using namespace std;int AverageTime;/平均时间void DisplayWindows(int presenttime,int seringtime, int unittime)cout quecus)AverageTime=0;cout GetCustomerQueue(queue queuec)queue temp;while(!queuec.empty()te

2、mp.push(queuec.front();queuec.pop();return temp;queue servingcustomer;queue waitingcustomer;int main()Bank Bank1;Bank1.ResetBank();queue CustomerTrack;queue CustomerTrack2;Customer ser1,ser2,ser3,ser4,ser5;int num5=0;srand(unsigned) time(0);/播种子const int TimeSlot=100;/假设服务时间段为 0-100const int UnitTim

3、e=10;/单位时间为 10const int ServTime=7;/服务时间为 1-7const int UnitTimePeo=10;/单位时间进来的人数为 0-9const int StopEnterTime=80;/为了保证所有顾客能完成服务,顾客进入的时间为 0-80int PresentTime=0;/初始化当前时间为 0int PerTime=5;/每隔 5 秒显示一次窗口信息int NumberOfCustomer=0;int TimeOfServing=0;int IDtrack=0;while(PresentTime(AverageTime)/static_cast(TotalNum)endl;system(“pause“);return 0;

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号