Fortran 内部子程序
示例
不是内部子程序的程序单元可以包含称为内部子程序的其他程序单元。
program prog implicit none contains function f() end function f subroutine g() end subroutine g end program
这样的内部子程序具有许多功能:
子程序中的实体与外部程序之间存在主机关联
隐式键入规则被继承(implicitnone在f上面有效)
内部子程序在主机中具有显式接口
模块子程序和外部子程序可能具有内部子程序,例如
module mod
implicit none
contains
function f()
contains
subroutine s()
end subroutine s
end function f
end module mod
热门推荐
10 财运虎年祝福语简短语
11 单亲爸爸春节祝福语简短
12 狗狗上厕所训练
13 植物种植祝福语简短
14 翻译考试祝福语朋友简短
15 个人周年庆简短祝福语
16 狗狗怎么训练
17 分别祝福语简短搞笑英文
18 生日广州男生祝福语简短