想用数组来先存储,然后再用数组输出,也没成功
/prep7
!*
*DIM,pie101,ARRAY,4096,,,
*DIM,pie202,ARRAY,4096,,,
*DIM,pie303,ARRAY,4096,,,
*DIM,pie404,ARRAY,4096,,,
*DIM,pie505,ARRAY,4096,,,
*DIM,pie606,ARRAY,4096,,,
*DIM,pie707,ARRAY,4096,,,
pp=1
pie1='A'
pie2='00B'
pie3='00C'
pie4='00D'
pie5='00E'
pie6='00F'
pie7='00G'
PPPP='00'
*do,i,1,4,1
*do,j,1,4,1
*do,k,1,4,1
*do,l,1,4,1
*do,m,1,4,1
*do,n,1,4,1
*do,o,1,4,1
pie101(pp)=i
pie202(pp)=j
pie303(pp)=k
pie404(pp)=l
pie505(pp)=m
pie606(pp)=n
pie707(pp)=o
pp=pp+1
*enddo
*enddo
*enddo
*enddo
*enddo
*enddo
*enddo
pp=1
*CREATE,ansuitmp
*CFOPEN,'data_title','txt',' ',APPEND
*do,i,1,4,1
*do,j,1,4,1
*do,k,1,4,1
*do,l,1,4,1
*do,m,1,4,1
*do,n,1,4,1
*do,o,1,4,1
*VWRITE,pie1,pie101(pp),pie2,pie202(pp),pie3,pie303(pp),pie4,pie404(pp),pie5,pie505(pp),pie6,pie606(pp),pie7,pie707(pp),PPPP,
(A1,F1.0,A3,F1.0,A3,F1.0,A3,F1.0,A3,F1.0,A3,F1.0,A3,F1.0,A2)
pp=pp+1
*enddo
*enddo
*enddo
*enddo
*enddo
*enddo
*enddo
*CFCLOS
*END
/INPUT,ansuitmp
!* |