说明: //八数码问题广度优先算法 //有缺陷:如果问题过于复杂会超出内存。 #include struct point { int a[3][3]; int direction; }; struct point sh[102],end; int count=1; void init() {printf("请输入起始节点的位置:\n"); int i,j; for (i=0;i<3;i++) for (j=0;j<3;j++) scanf("%d",&sh;[0].a[i][j]); sh
<weixin_42115293> 上传 | 大小:3kb