Курсовая работа: Поиск в лабиринте
finish.x=0;
finish.y=0;
for(i=1;i<=count_a;i++)
for(j=1;j<=count_a;j++)
color[i][j]=0;
for(i=1;i<=MAX_PATH;i++)
{
path[i].x=0;
path[i].y=0;
}
count_p=0;
gui = new tMyGUI();
}
tLabirint::~tLabirint()
{
delete gui;
}
void tLabirint::ReadMatrix()
{
FILE *f;
char ch;
int i,j,n;
f = fopen("input.txt", "rt");
fread(&ch,sizeof(ch), 1, f);
n = atoi(&ch);
fread(&ch, sizeof(ch), 1, f);
//Chitat' startovuyu pozitciu:X
fread(&ch,sizeof(ch), 1, f);
start.x = atoi(&ch);