arraysave.f90
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· F90 代码 · 共 25 行
F90
25 行
! Program to test arrays with the save attributeprogram testarray implicit none integer, save, dimension (6, 5) :: a, b a = 0 a(1, 1) = 42 a(6, 5) = 43 b(:,1:5) = a call fn (a)containssubroutine fn (a) implicit none integer, dimension(1:, 1:) :: a integer, dimension(2) :: b b = ubound (a) if (any (b .ne. (/6, 5/))) call abort if (a(1, 1) .ne. 42) call abort if (a(6, 5) .ne. 43) call abortend subroutineend program
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?