There is a dinning car in each train in China, but you should not expect too much for the meal quality. And the price is a little bit high. There are also buffet cars back and forth to sell snacks and fruits. You may consider to take some food by yourself when taking the train.