This procedure solves the problem on travel routes in chess, based on the given starting point can be found on all paths that meet the criteria. The complete source code, has been tested.
File list:
Debug
....\1515.exe
....\1515.ilk
....\1515.obj
....\1515.pch
....\1515.pdb
....\ma.exe
....\ma.ilk
....\ma.obj
....\ma.pch
....\ma.pdb
....\mahuisu.exe
....\mahuisu.ilk
....\mahuisu.obj
....\mahuisu.pch
....\mahuisu.pdb
....\vc60.idb
....\vc60.pdb
ma.cpp
ma.dsp
ma.dsw
ma.ncb
ma.opt