文件名称:banksulotion
-
所属分类:
- 标签属性:
- 上传时间:2013-11-23
-
文件大小:4.66mb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
银行柜员服务问题:银行有n个柜员负责为顾客服务,顾客进入银行先取一个号码,然后等着叫号。当某个柜员空闲下来,就叫下一个号。
编程实现该问题,用P、V操作实现柜员和顾客的同步。
实现要求
某个号码只能由一名顾客取得;
不能有多于一个柜员叫同一个号;
有顾客的时候,柜员才叫号;
无柜员空闲的时候,顾客需要等待;
无顾客的时候,柜员需要等待。
测试文本格式
测试文件由若干记录组成,记录的字段用空格分开。记录第一个字段是顾客序号,第二字段为顾客进入银行的时间,第三字段是顾客需要服务的时间。
输出要求
对于每个顾客需输出进入银行的时间、开始服务的时间、离开银行的时间和服务柜员号。-Bank teller service issues: bank teller is responsible for the n-th customer service, the customer enters the bank to take a number and wait for call number. When a teller idle down, and called the next number. Programming the issue, P, V synchronization teller operations and customers. Implementation requires a number can only be achieved by a customer can not have more than one teller called the same number has a customer when the teller called number without teller idle time, the customer need to wait without the customer' s time, the teller need to wait. Test text test file composed by a number of records, record fields separated by a space. Record first field is the customer number, the second field is the time a customer enters the bank, and the third field is the time the customer needs the service. Output requirements for each customer need output into the bank' s time to begin serving time, leaving the bank teller time and service number.
编程实现该问题,用P、V操作实现柜员和顾客的同步。
实现要求
某个号码只能由一名顾客取得;
不能有多于一个柜员叫同一个号;
有顾客的时候,柜员才叫号;
无柜员空闲的时候,顾客需要等待;
无顾客的时候,柜员需要等待。
测试文本格式
测试文件由若干记录组成,记录的字段用空格分开。记录第一个字段是顾客序号,第二字段为顾客进入银行的时间,第三字段是顾客需要服务的时间。
输出要求
对于每个顾客需输出进入银行的时间、开始服务的时间、离开银行的时间和服务柜员号。-Bank teller service issues: bank teller is responsible for the n-th customer service, the customer enters the bank to take a number and wait for call number. When a teller idle down, and called the next number. Programming the issue, P, V synchronization teller operations and customers. Implementation requires a number can only be achieved by a customer can not have more than one teller called the same number has a customer when the teller called number without teller idle time, the customer need to wait without the customer' s time, the teller need to wait. Test text test file composed by a number of records, record fields separated by a space. Record first field is the customer number, the second field is the time a customer enters the bank, and the third field is the time the customer needs the service. Output requirements for each customer need output into the bank' s time to begin serving time, leaving the bank teller time and service number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
banksulotion/
banksulotion/banksulotion/
banksulotion/banksulotion.ncb
banksulotion/banksulotion.sln
banksulotion/banksulotion.suo
banksulotion/banksulotion/bank.cpp
banksulotion/banksulotion/banksulotion.vcproj
banksulotion/banksulotion/banksulotion.vcproj.zhao-HP.zhao.user
banksulotion/banksulotion/Debug/
banksulotion/banksulotion/Debug/bank.obj
banksulotion/banksulotion/Debug/banksulotion.exe.embed.manifest
banksulotion/banksulotion/Debug/banksulotion.exe.embed.manifest.res
banksulotion/banksulotion/Debug/banksulotion.exe.intermediate.manifest
banksulotion/banksulotion/Debug/BuildLog.htm
banksulotion/banksulotion/Debug/mt.dep
banksulotion/banksulotion/Debug/vc90.idb
banksulotion/banksulotion/Debug/vc90.pdb
banksulotion/banksulotion/input.txt
banksulotion/banksulotion/output.txt
banksulotion/Debug/
banksulotion/Debug/banksulotion.exe
banksulotion/Debug/banksulotion.ilk
banksulotion/Debug/banksulotion.pdb
banksulotion/banksulotion/
banksulotion/banksulotion.ncb
banksulotion/banksulotion.sln
banksulotion/banksulotion.suo
banksulotion/banksulotion/bank.cpp
banksulotion/banksulotion/banksulotion.vcproj
banksulotion/banksulotion/banksulotion.vcproj.zhao-HP.zhao.user
banksulotion/banksulotion/Debug/
banksulotion/banksulotion/Debug/bank.obj
banksulotion/banksulotion/Debug/banksulotion.exe.embed.manifest
banksulotion/banksulotion/Debug/banksulotion.exe.embed.manifest.res
banksulotion/banksulotion/Debug/banksulotion.exe.intermediate.manifest
banksulotion/banksulotion/Debug/BuildLog.htm
banksulotion/banksulotion/Debug/mt.dep
banksulotion/banksulotion/Debug/vc90.idb
banksulotion/banksulotion/Debug/vc90.pdb
banksulotion/banksulotion/input.txt
banksulotion/banksulotion/output.txt
banksulotion/Debug/
banksulotion/Debug/banksulotion.exe
banksulotion/Debug/banksulotion.ilk
banksulotion/Debug/banksulotion.pdb
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。