树
C语言中的实现。
特征
支持任意数量的尺寸
通用接口,支持可变大小的物品
ANSI C(C99)
支持自定义分配器
坚固,独立的测试
相当不错的表现 :rocket:
例子
# include < stdio>
# include < string>
# include < math.h >
# include " rtree.h "
struct city {
char *name;
double lat;
double lon;
};
struct city phx = { . name = " Phoenix " , . lat = 33.448 , . lon = - 112.073 };
struct city enn = { . name = " Ennis " , . lat = 52.843 , . lon = - 8.986 };
struct
2023-01-11 12:50:06
401KB
C
1