给定的两点是 x,y坐标吗,用勾股定理求#include "math.h"double GetLen(int x0,int y0,int x1,int y1){ return sqrt((x0-x1)*(x0-x1)+(y0-y1)*(y0-y1)); }
话说我也是十号,有答案了给我也交了~~谢了~~~