검색어 입력폼

[프로그램] 미로찾기 프로그램(C++)

등록일 2003.09.17 파일확장자C언어 (cpp) | 4페이지 | 가격 1,500원

소개글

미로찾기 프로그램
C++로 작성

목차

없음

본문내용

#include <stdio.h>
#include <windows.h>

#define MAX_STACK 100
#define MAP_X 20
#define MAP_Y 20

int g_Stack[MAX_STACK];
int g_nStackPointer = 0;

int g_Map[MAP_Y][MAP_X] =
{
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5,
5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 0, 5, 5, 5, 5, 5, 5, 5, 0, 5,
5, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 5,
5, 0, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 5, 5, 0, 5, 0, 5,
5, 0, 5, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 5, 0, 5,
5, 0, 5, 0, 5, 0, 5, 5, 0, 5, 5, 5, 5, 5, 0, 5, 0, 5, 0, 5,
5, 0, 5, 0, 5, 0, 5, 0, 0, 0, 0, 0, 0, 5, 0, 5, 0, 5, 0, 5,
5, 0, 5, 0, 5, 0, 5, 0, 5, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5,
5, 0, 5, 0, 5, 0, 5, 0, 5, 5, 5, 5, 0, 5, 0, 5, 0, 5, 0, 5,
5, 0, 5, 0, 5, 0, 5, 5, 5, 0, 3, 5, 0, 5, 0, 5, 0, 5, 0, 5,
5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 5, 0, 5, 0, 5, 0, 5, 0, 5,
5, 0, 5, 0, 5, 0, 5, 0, 0, 0, 0, 0, 0, 5, 0, 5, 5, 5, 0, 5,
5, 0, 5, 0, 5, 0, 5, 5, 5, 5, 5, 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