【发布时间】:2019-02-04 00:17:22
【问题描述】:
我正在学习 fortran,需要我的程序在数组中查找特定值。一个简单的程序如下:
program hello
implicit none
integer :: x
x = findloc([4,9,0,2,-9,9,1],9)
end program hello
给我以下错误:
Error: Function 'findloc' at (1) has no IMPLICIT type
我在 macbook 上使用 gfortran 编译它。如果我能获得有关 findloc 的帮助,我将不胜感激
【问题讨论】: