代码:
program a
implicit double precision (a-h,o-z)
dimension a(3,3),b(3)
open(1,file='matrix.dat')
do i=1,3
read(1,*) b(i)(a(i,j),j=1,3)
enddo
close(1)
stop
end
错误:
At line 7 of file ea.for (unit=1, file='matrix.dat')
Fortran runtime error: End of file
矩阵 a(3*3), b(3):
3
2.d0 -7.d0 4.d0 4.d0
1.d0 9.d0 -6.d0 4.d0
-3.d0 8.d0 5.d0 2.d0