검색어 입력폼

[컴퓨터] 미로 프로그램

등록일 2003.10.09 한글파일한글 (hwp) | 4페이지 | 가격 3,000원

목차

없음

본문내용

#include<stdio.h>
#define MAX_STACK_SIZE (MAX_R+2)*(MAX_C+2)
#define MAX_R 11
#define MAX_C 9
#define EXIT_R 11
#define EXIT_C 9
#define TRUE 1
#define FALSE 0

typedef struct {
short int r;
short int c;
short int d;
} element;

int wall [MAX_R+2][MAX_C+2] = {
{1,1,1,1,1,1,1,1,1,1,1},
{0,0,0,0,1,0,0,0,0,0,1},
{1,1,1,0,1,0,1,1,1,0,1},
{1,0,0,0,1,0,1,0,1,0,1},
{1,1,1,0,1,0,1,0,1,0,1},
{1,0,1,0,0,0,1,0,0,0,1},
{1,0,1,1,1,1,1,0,1,1,1},
{1,0,0,0,1,0,0,0,1,0,1},
{1,0,1,0,1,0,1,1,1,0,1},
{1,0,1,0,0,0,1,0,1,0,1},
{1,1,1,0,1,1,1,0,1,0,1},
{1,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,1,1,1,1,1,1},
다운로드 맨위로