There is no affordable food at t2 Terminal of Capital Airport after 10 pm. There are instant noodles, but they are not cheap. I suggest you buy a big bowl of instant noodles from the supermarket in the city and take it to the airport. The airport terminal provides free boiled water.
Beijing capital international airport-terminal 2
Address: Airport West Road, Chaoyang District, Beijing