A星寻路算法C++实现

A*寻路算法的C++实现,共两个文件 astar.h astar.cpp算法 代码以下数据结构 // astar.h BEGIN测试 #ifndef ASTAR_H #define ASTAR_H #include <stdio.h> #include <vector> #include <set> // 地图格子数据结构 struct grid_t { int id; // grid id {1
相关文章
相关标签/搜索