找外国男人做老公网站,wordpress部署php,国外网站博客网站也可以做引流,在哪个网站上可以学做衣服Fortran 中的指针 指针可以看作一种数据类型 指针存储与之关联的数据的内存地址变量指针#xff1a;指向变量数组指针#xff1a;指向数组过程指针#xff1a;指向函数或子程序指针状态 未定义未关联
integer, pointer::p1null()
!或者
nullify(p1) 已关联 指针操作 指…Fortran 中的指针 指针可以看作一种数据类型 指针存储与之关联的数据的内存地址变量指针指向变量数组指针指向数组过程指针指向函数或子程序指针状态 未定义未关联
integer, pointer::p1null()
!或者
nullify(p1) 已关联 指针操作 指向 将变量、数组、过程或指针的内存地址以及其他信息数组上下界、过程接口等赋值给指针赋值 将非过程的量所关联的值赋值到指针所关联的地址。涉及到的所有指针必须已经关联到足够的内存空间 指针状态查询函数
associated(pointer) !是否已经有关联
associated(target, pointer) !这两个是否有关联
example-1变量指针
! A fortran95 program for G95
! By WQY
program testimplicit noneinteger, target::a1integer, pointer::pnull()print*, associated(p)paprint*, associated(p)print*, associated(p, a)pause
end programexample-2数组指针
! A fortran95 program for G95
! By WQY
program testimplicit noneinteger, target::a(2, 3)999integer, pointer::p(:, :)null()print*, associated(p)paprint*, associated(p)print*, associated(p, a)pause
end program example-3:过程指针
! A fortran95 program for G95
! By WQY
program testuse minteger::a1procedure(pro), pointer::pinterfacesubroutine pro(a)integer aend subroutineend interfacepsubcall p(a)pause
end programmodule mcontainssubroutine sub(a)integer aprint*, sub:, aend subroutine sub
end module