According to the passage, on entering a railway compartment, an overseas visitor is expected to ______.
A.inquire about the code of behavior in the train
B.shake hands with the person he knows
C.shake hands with all the passengers
D.behave like an Englishman