program ex0816
implicit none
integer :: a(5)=(/ 1,2,3,4,5 /)
Call ShowArray1(a)
write(6,*)a
Stop
End
Subroutine ShowArray1(num1)
implicit none
integer :: num1(:)
num1 = num1 + 1
write(6,*)num1
return
End
静待花开 发表于 2022-12-19 18:37
非常感谢您,终于明白我的错在哪里了,非常感谢。
要是声明这个数组时,按照正常语法,直接声明其大小,就 ...
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |