where_5.f90

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

F90
14
字号
! Tests WHERE satement with non-integer array in the mask expressionprogram where_5   integer, dimension(5) :: a   real(kind=8), dimension(5) :: b   a = (/1, 2, 3, 4, 5/)   b = (/1d0, 0d0, 1d0, 0d0, 1d0/)      where (b .ne. 0d0)      a(:) = a(:) + 10   endwhere   if (any (a .ne. (/11, 2, 13, 4, 15/))) call abortend program

⌨️ 快捷键说明

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