Posted by Brian on November 14, 2001 at 11:18:58:
So, the Dispatcher holds a list of tow truck pointers. The dispatcher receives calls and stores those calls in a queue for the tow trucks. When the tow truck receives an order to tow a car, and it reaches where the car is *supposed* to be, how can the tow truck check whether a car is there or not? Since the tow truck list in a member of the dispatcher class, and the dispatcher class cant receive cars, how is the link made between the cars and trucks so the trucks can check locations for cars?
Post a Followup