[Fortran] 纯文本查看 复制代码
subroutine sub
use link
implicit none
integer :: add
integer :: a,b
potinter(add,fileonpen)
call fileonpen(a,b)
end subroutine sub
module link
interface
subroutine fileopen(a,n)
intger :: a,b
end subroutine fileopen
end interface
endmodule link
[Fortran] 纯文本查看 复制代码
module link
interface
subroutine fileopen(a,n)
integer :: a,b
end subroutine fileopen
end interface
endmodule link
subroutine sub
use link
implicit none
integer :: add
integer :: a,b
pointer(add,fileonpen)
call fileonpen(a,b)
end subroutine sub
program s
call sub()
end program s