1、int maid()应该是int main()
2、要求(x1,y1)(x2,y2)之间的距离,但是没有对x1,y1,x2,y2赋值。可以用scanf提示用户输入点的横纵坐标,否则无法计算。
#include
#include
int main()
{
double x1,x2,y1,y2,s;
printf("please input Coordinate:");
scanf("%lf,%lf,%lf,%lf",&x1,&x2,&y1,&y2);
s = sqrt((x1-x2) * (x1-x2) + (y1-y2) * (y1-y2));
printf("%lf",s);
return 0 ;
}