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