module global
implicit none
contains
subroutine fun(a)
real a(:,:)
a = 3
End subroutine
end module
Program www_fcode_cn
Implicit None
real a(3,2)
use global
Write (*, '(6f3.0)') a
end program
module global
implicit none
contains
subroutine fun(a)
real a(:,:)
a = 3
End subroutine
end module
Program www_fcode_cn
use global
Implicit None
real a(3,2)
Write (*, '(6f3.0)') a
end program
fcode 发表于 2019-10-28 22:40
use 语句要在程序单元的最上面
[mw_shl_code=fortran,true]
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |