li913 发表于 2016-9-9 16:45
没有,自己写代码。
program www_fcode_cn
implicit none
real :: a(10) = [1,2,3,4,5,6,7,8,9,10]
write(*,*) maxloc( a , a < 7.5 )
write(*,*) minloc( a , a > 7.5 )
end program www_fcode_cn
fcode 发表于 2016-9-9 19:29
[mw_shl_code=fortran,true]program www_fcode_cn
implicit none
real :: a(10) = [1,2,3,4,5,6,7,8,9, ...
fcode 发表于 2016-9-11 21:32
也许你需要的是 maxval 或 minval
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |