道路曲线放样实习报告(11)
发布时间:2021-06-06
发布时间:2021-06-06
fclose(f2);
f3=fopen("Result.txt","r"); //计算并输
出角度和距离
if (f3==NULL)
{ printf("cannot open this file\n");
exit(0);
}
f4=fopen("Result1.txt","w");
fprintf(f4," Peg \t X(m) Y(m)
B S(to ZH)(m)\n");
for (i=0;i<n;i++)
{ double a,b;
fscanf(f3,"%lf%lf",&a,&b);
B[i]=atan(b/a);
B[i]=arc_dms(B[i])/10000;
s[i]=sqrt(a*a+b*b);
fprintf(f4,"DK8+%8.3lf\t%8.3lf\t%8.3lf\t%8.4lf\t%8.3lf\n",dk[i],X[i],Y[i],B[i],s[i]);
}
上一篇:毕业论文封面1
下一篇:银行团干部入党申请书范文