소개글
자료구조을 공부하다가 C언어로 미로찾기 프로그램을 만들어봤습니다.
도움이 되길 바랍니다..
컴파일 실행환경
없음
본문내용
#include <stdio.h>
#define Max_row 13
#define Max_col 17
#define Max (Max_row-2)*(Max_col-2)
int top,r_top;
typedef struct{
int x,y,dir;
} position;
position stack[Max],r_stack[Max];
position preposition,lastposition;
typedef struct{
int a,b;
} offsets;
offsets move[8] = {
{-1,0},//N
{-1,1},//NE
{0,1},//E
{1,1},//SE
{1,0},//S
{1,-1},//SW
{0,-1},//W
{-1,-1}//NW
};
참고 자료
없음