검색어 입력폼

[자료구조] 간단한 미로찾기 c 언어 소스.

등록일 2004.06.07 파일확장자기타파일 (c) | 4페이지 | 가격 700원

목차

없음

본문내용

#define exit_row 18//index값임.
#define exit_col 18//index값임.
#define MAX ((MAX_row)-2) * ((MAX_row)-2) //스택의 max size.

struct offsets{
char vert;
char horiz;
} move[8];

char maze[MAX_row][MAX_col]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,1,1,
1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,1,
1,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,1,
1,1,1,1,1,1,1,1,0,1,0,0,0,1,0,1,0,1,0,1,
1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,0,1,0,1,
1,1,1,1,1,1,1,1,0,1,0,0,1,0,0,1,0,1,1,1,
1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,1,1,1,
다운로드 맨위로