Description: Stack simulation parking lot to the sidewalk outside the queue simulated vehicle, according to the input from the terminal read sequences simulated data management. Each set of input data consists of three data items: Automotive " reach" or " leave" information, license plate number and time of arrival or departure, for each set of input data, output data after the operation: If the vehicle arrives , the output in the car park or car parking on the sidewalk location if the car away the output of cars in the parking lot stay to be paid time and cost (time spent in the sidewalk without charge.) Structure in order to achieve the stack, the queue as a list implementation.
To Search:
File list (Check if you may need any files):
tingchechang.cpp