问题

______ in the queue for half an hour, the old man suddenly realized he had left the check in the car.
A:Waiting
B:To wait
C:Having waited
D:To have waited
B:To wait
C:Having waited
D:To have waited
正确答案是: