Failure of wakeup from hibernation of an active train may result in failure of it to depart from the garage in the CBTC system. In this case, a replacement backup train will be used but with rather low operational efficiency. With development of computer technology, rational management of active and standby trains becomes more urgent via computer technology. This article discusses active and backup trains, offers design and development by the Qt frame and C++ language, integrates the schedule system and the garage entry/exit dispatching system, and achieves the objective of automatic replacement of an active train with a backup one in line with the C/S-mode network architecture.