我刚学fortran,下面这段代码总编译不成功,总提示 Error: DATA statement at (1) has more values than variables 
[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode program ex0707
implicit none
integer, parameter :: row = 3
integer, parameter :: col = 2
integer :: m(row, col)
integer r
integer c
data((m(r, c),r=1,2,3),c=1,2)/10,20,30,40,50,60/
write(*, "(i3, i3, /,i3, i3, /, i3, i3)")((m(r, c), c=1,2),r=1,2,3)
stop
end  
 
编译信息如下(警告我都删掉了): 
ex0707.f95:9:5: 
  data((m(r, c),r=1,2,3),c=1,2)/10,20,30,40,50,60/ 
     1 
Error: DATA statement at (1) has more values than variables 
编译失败。 
 
我没有多赋值啊?请各位指教。 
 
 |