问题

____ in the queue for half an hour, the old man suddenlyrealized he had left the cheque 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
正确答案是: