arrayarg2.f90

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· F90 代码 · 共 22 行

F90
22
字号
! Program to test array arguments which depend on other array argumentsprogram arrayarg2   integer, dimension(5) :: a, b   a = (/1, 2, 3, 4, 5/)   b = (/2, 3, 4, 5, 6/)      call test (a, b)   if (any (b .ne. (/4, 7, 10, 13, 16/))) call abortcontainssubroutine test (x1, x2)   implicit none   integer, dimension(1:), intent(in) :: x1   integer, dimension(1:), intent(inout) :: x2   integer, dimension(1:size(x1)) :: x3   x3 = x1 * 2   x2 = x2 + x3end subroutine testend program

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?