【文件属性】:
文件名称:用c语言实现迷宫问题
文件大小:3KB
文件格式:RAR
更新时间:2013-08-09 19:20:19
c语言 迷宫
#include
#include
#define M 6
#define N 8
#define MAXLEN 100
typedef struct
{
int x;
int y;
}item;
typedef struct
{
int x;
int y;
int d;
}dataType;
typedef struct
{
dataType data[MAXLEN];
int top;
}SeqStack;
item move[8];
int maze[M+2][N+2]={
{1,1,1,1,1,1,1,1,1,1},
{1,0,1,1,1,0,1,1,1,1},
{1,1,0,1,0,1,1,1,1,1},
{1,0,1,0,0,0,0,0,1,1},
{1,0,1,1,1,0,1,1,1,1},
{1,1,0,0,1,1,0,0,0,1},
{1,0,1,1,0,0,1,1,0,1},
{1,1,1,1,1,1,1,1,1,1}
};
【文件预览】:
include.doc