Introduction - If you have any usage issues, please Google them yourself
Stack simulation parking lot to the queue simulation car off the sidewalk, in accordance with the read from the terminal into the input data sequence to simulate management. Each set of input data including the three data items: car "arrived" or "leave" information, vehicle license number and the arrival or departure time. A set of input data to the output after the operation as follows: if the vehicle arrives at the output of the position of car parking in the parking lot or sidewalk if the vehicle to leave, then the output of cars in the parking lot of time to stay and should pay costs (stay on the sidewalk free of charge). Stack in the order of the structure. Queue to the list structure to achieve