单项选择题

If I had remembered ()the window,the thief would not have got in.

A. to close
B. closing
C. to have closed
D. having closed