#ifndef mylist_h #define mylist_h #include #include #include using namespace std; const int NI=5; //[0] = Current Row //[1] = Current Col //[2] = Parent Dir //[3] = G //[4] = G+H #define INFO_ROW 0 #define INFO_COL 1 #define INFO_PARENT 2 #define INFO_G 3 #define INFO_F 4 int List_Add(int List[][NI], int N, int &iList, int v[NI]); void List_Clear(int List[], int N, int &iList); bool List_Item(int List[][NI], int N, int iList,int node[NI], int i=-1); int List_FindItem(int List[][NI], int N, int iList, int r,int c); int List_FindLowCost(int List[][NI], int N, int iList); void List_Remove(int List[][NI], int N, int &iList, int i); #endif