有进步,请见,如下:
[Fortran] 纯文本查看 复制代码 Integer zz
Dimension a(30, 60), b(30, 50)
Read (*,*)jr
Do kk = 1, jr
read (*,*) n, zz, bass
read (*,*) ((a(i,j),j=1,n),i=1,n)
read (*,*) ((b(i,j),j=1,n),j=1,zz)
Print *, '--------------------------------'
Print *,' COEFFICIENT OF THE MATRIX '
..........
..........
在如下标准输入下:(Input)
3 3 1.0
9.37460 3.04160 -2.43710
3.04160 6.18320 1.21630
-2.43710 1.21630 8.44290
**********
运执行,报错如下:
Compilation failed due to following error(s). At line 5 of file main.f95 (unit = 5, file = 'stdin')
Fortran runtime error: Bad integer for item 1 in list input
Error termination. Backtrace:
#0 0x7f69a3e49d5a
#1 0x7f69a3e4a869
#2 0x7f69a3e4b54f
....
.....
烦请有空再看一下, 输入格式??! 盼复!
|