上传者: yanjianxun2011
|
上传时间: 2022-11-07 16:05:09
|
文件大小: 1KB
|
文件类型: TXT
# include
# include
# define PI 3.1415926535897932
void main()
{
long double RTA(long double alfa);
double JJ(double vx,double vy);
double vx,vy;
long double alfa;
printf ("请输入两个点的坐标\n");
scanf ("%lf,%lf,%lf,%lf",&xa;,&ya;,&xb;,&yb;);
vx=xb-xa;
vy=yb-ya;
alfa=JJ(vx,vy);
printf ("则两点所连直线的方位角为:alfa=%lf\n",alfa);