Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Mathimatics-Numerical algorithms Data structs
Title: b Download
 Description: Description of the problem: There is a ferry, and each ferry will carry a 10 car crossing the river, the river traffic is divided into two types of passenger cars and trucks, on the ferry the following provisions: ⑴ similar first-come, first car on board ⑵ bus before the goods on board ⑶ 4 per passenger on board a goods vehicle will be allowed, but waiting for the bus less than 4 are filled with goods, in turn, if there is no vehicle waiting for the bus to fill with ⑷ filled automatically after 10 set sail, when the waiting time less than 10 when the vehicle should also be made artificially control the ship. 【Achieve prompt: This title can be established and the use of two chain queue, a queue for the bus, and another queue for the goods, to take the ferry crossing the river into the car, respectively, the corresponding queue. When there are ferry crossing bus queue when the first four of the team bus and into the ferry, the queue of trucks allowed four trucks and
 Downloaders recently: [More information of uploader 185290469]
 To Search:
  • [555] - The algorithm simulated crossing managem
File list (Check if you may need any files):
轮船渡口管理
............\classCar.h
............\classShip.h
............\function.h
............\LinQueue.h
............\main.cpp
............\ReadMe.txt
    

CodeBus www.codebus.net