迷宫最短路径。。。完全不懂。。
#include <stdio.h>
#include <stdlib.h>
#define MAXSIZE 1000
struct Position{
int x;
int y;
};
typedef struct node{
Position position[MAXSIZE];
Position prior[MAXSIZE];
int rear,front;
}SeqQuene,*PSeqQuene;
void main()
{
SeqQuene Quene;
int **maze;
int size;//the size of the maze
int i,j;//to control loops
Position CurPos,EndPos;
int flag=0;//indicates thar there is no path
//initial the sequence quene
Quene.front = 0;
#include <stdio.h>
#include <stdlib.h>
#define MAXSIZE 1000
struct Position{
int x;
int y;
};
typedef struct node{
Position position[MAXSIZE];
Position prior[MAXSIZE];
int rear,front;
}SeqQuene,*PSeqQuene;
void main()
{
SeqQuene Quene;
int **maze;
int size;//the size of the maze
int i,j;//to control loops
Position CurPos,EndPos;
int flag=0;//indicates thar there is no path
//initial the sequence quene
Quene.front = 0;