单项选择题

A.happened having
B.happened to have
C.was happening to have
D.had happened to have