A. [悬赏]求解C语言汇编题目
1、程序流程图分析与改写
因为参考程序流程图中存在两个if分支交叉的情况,这种程序流程无法直接用循环结构实现,所以需要对程序流程图进行改写。
在改写之前需要对整个流程图进行分析。
moose@debian:~/p_project/2015xxxx_网络知道/c_cam$./a.out
r0=45.000000,phi=0.000000,s=0.000000,ds=0.375000,a=0.151973,amax=0.151973,x=45.705578,y=-8.000000,X=36.347839,Y=-9.637916,xc=0.000000,yc=0.000000
r0=45.000000,phi=1.000000,s=0.000171,ds=0.000514,a=0.151973,amax=0.151973,x=17.963154,y=34.137642,X=14.285400,Y=25.378410,xc=0.000000,yc=0.000000
...
r0=45.000000,phi=119.000000,s=0.020388,ds=-44.188843,a=0.849510,amax=0.849510,x=45.426483,y=-24.410582,X=36.129913,Y=-22.455133,xc=0.000000,yc=0.000000
r0=45.000000,phi=120.000000,s=0.020559,ds=-44.563328,a=0.849509,amax=0.849510,x=32.584461,y=20.035658,X=25.916046,Y=13.269401,xc=0.000000,yc=0.000000
r0=45.000000,phi=121.000000,s=45.000000,ds=0.000000,a=0.087970,amax=0.849510,x=-12.404583,y=90.987427,X=-11.110419,Y=81.575989,xc=0.000000,yc=0.000000
...
r0=45.000000,phi=180.000000,s=45.000000,ds=0.000000,a=0.087970,amax=0.849510,x=-47.874447,y=-67.881332,X=-42.879730,Y=-59.800316,xc=0.000000,yc=0.000000
r0=45.000000,phi=181.000000,s=44.999592,ds=30.035320,a=0.237949,amax=0.849510,x=39.310745,y=-87.747360,X=35.209457,Y=-79.178261,xc=0.000000,yc=0.000000
r0=45.000000,phi=182.000000,s=44.999187,ds=30.534101,a=0.237950,amax=0.849510,x=90.353180,y=-26.939114,X=80.926598,Y=-25.760328,xc=0.000000,yc=0.000000
...
r0=45.000000,phi=360.000000,s=0.000000,ds=0.000000,a=0.173278,amax=0.849510,x=-20.637590,y=46.097324,X=-16.412260,Y=37.588707,xc=0.000000,yc=0.000000