问题

_____ in the queue for an hour,Tom suddenlyrealized that he had left his wallet at home.
A:their
B:Have waited
C:Having waited
D:To have waited
B:Have waited
C:Having waited
D:To have waited
正确答案是: