摘要:
program test real, dimension(5) :: x integer :: n x = (/1., 2., 4., 3., 1./) n = maxloc(x) + 1 print *, nenda.f90(5): error #6366: The shapes of the array expressions do not conform. [N] n = maxloc(x) + 1----^compilation aborted for a.f90 (code 1)因为,maxloc的输出值是数组即使p是一个一维数组即使maxloc(p)输出只有一个值但是... 阅读全文