不知道怎么修改,有些错误的信息看不懂。帮帮忙,看一下~~~
#include"stdio.h"
#define int L[8][8]={0},int i=2,int j=3
void main()
{ int L[i][j]=1;
Trial(int L,int i,int j,1);
}
void Trial(int L[][],int i,int j,int step)
{ if(step>63)
{ for(i=0;j<=63;i++)
for(j=0;j<=63;j++)
{printf("% d",L[i][j]);
printf("\n");
}
}
if(0<=i-2<=7&0<=j+1<=7&L[i-2][j+1]==0)
{ L[i-2][j+1]=step+1;
Trial(L,i-2,j+1,step+1);
}
if(0<=i-1<=7&0<=j+2<=7&L[i-1][j+2]==0)
{ L[i-1][j+2]=step+1;
Trial(L,i-1,j+2,step+1);
}
if(0<=i-0<=7&0<=j+3<=7&L[i-0][j+3]==0)
{ L[i-0][j+3]=step+1;
Trial(L,i-0,j+3,step+1);
}
if(0<=i+1<=7&0<=j+4<=7&L[i+1][j+4]==0)
{ L[i+1][j+4]=step+1;
Trial(L,i+1,j+4,step+1);
}
if(0<=i+2<=7&0<=j+5<=7&L[i+2][j+5]==0)
{ L[i+2][j+5]=step+1;
Trial(L,i+2,j+5,step+1);
}
if(0<=i+3<=7&0<=j+6<=7&L[i+3][j+6]==0)
{ L[i+3][j+6]=step+1;
Trial(L,i+3,j+6,step+1);
}
if(0<=i+4<=7&0<=j+7<=7&L[i+4][j+7]==0)
{ L[i+4][j+7]=step+1;
Trial(L,i+4,j+7,step+1);
}
if(0<=i+5<=7&0<=j+8<=7&L[i+5][j+8]==0)
{ L[i+5][j+8]=step+1;
Trial(L,i+5,j+8,step+1);
}
}