单项选择题

A. He brought food with him when he got on the train.
B. He bought food from the local people on the train.
C. He bought food sold on the platform.
D. He ate in the dining cart of the train.