Description: First, the problem
A train to N train cars were sent to the N station, the station in 1 ~ N order number, the train in accordance with the N, N-1 ... 1 the number of order through the station. Pretend the train number is the number of its destination station.
Second, the requirements
Given an arbitrary arrangement of the order. Rearrange the cars so that they are in the order of 1 to N. Requires rearrangement only the track into the buffer rail, or the buffer rail to the derailment.
To Search:
File list (Check if you may need any files):
Debug
.....\Train火车车厢重排.exe
.....\Train火车车厢重排.ilk
.....\Train火车车厢重排.pdb
Train火车车厢重排
Train火车车厢重排.sdf
Train火车车厢重排.sln
.................\Debug
.................\.....\CL.read.1.tlog
.................\.....\CL.write.1.tlog
.................\.....\link-cvtres.read.1.tlog
.................\.....\link-cvtres.write.1.tlog
.................\.....\link-rc.read.1.tlog
.................\.....\link-rc.write.1.tlog
.................\.....\link.read.1.tlog
.................\.....\link.write.1.tlog
.................\.....\Train.obj
.................\.....\Train火车车厢重排.lastbuildstate
.................\.....\Train火车车厢重排.log
.................\.....\vc110.idb
.................\.....\vc110.pdb
.................\linkedStack.h
.................\Train.cpp
.................\Train火车车厢重排.vcxproj
.................\Train火车车厢重排.vcxproj.filters