// Kun.cpp #include "stdafx.h" #include #include using namespace std; const int N=8; int pole [N][N]; void pohyb(int krok, int x, int y) { if (0<=x && xkrok || pole [x][y]==-1){ pole [x][y]=krok; pohyb(krok+1,x+2, y+1); pohyb(krok+1,x-2, y+1); pohyb(krok+1,x-2, y-1); pohyb(krok+1,x+2, y-1); pohyb(krok+1,x+1, y+2); pohyb(krok+1,x+1, y-2); pohyb(krok+1,x-1, y+2); pohyb(krok+1,x-1, y-2); } } } int _tmain(int argc, _TCHAR* argv[]) { for (int i=0;i