摘要:
CSDN上能够找到很多道格拉斯普克算法的代码:其中一个参考代码 1 #include<stdio.h> 2 #include<math.h> 3 #include<malloc.h> 4 #include<string.h> 5 #define NULL 0 6 #define LEN sizeof(struct point) 7 8 struct point 9 { 10 char ptname[8]; 11 float x; 12 float y; 13 struct point *next; 14 }; 15 16 struc... 阅读全文