sqrt及pow问题
程序代码:#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
float a,b,c,d,e,f;
printf("請輸入第一點座標A(x1,y1):");
scanf("%d %d",&a,&b);
printf("請輸入第二點座標B(x2,y2):");
scanf("%d %d",&c,&d);
e=sqrt(pow(x*2.0-x*1.0,2.0)+pow(y*2.0-y*1.0,2.0));
f=(y*2-y*1)/x*(2-x*1);
printf("兩點的距離=%f\n",e);
printf("兩點的斜率=%f\n",f);
system("pause");
return 0;
}









