Fortran数组函数--查找内容

Posted xdd1997

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Fortran数组函数--查找内容相关的知识,希望对你有一定的参考价值。

1.数组的声明

integer,parameter::num=5
integer::student(num)
或者 integer a(10)
或者 integer a(10,6)
student(1)=5    !第一个元素值为5,默认索引值从1开始
赋初值
integer A(5)
data /1,2,3,4,5/
data /5*0/     !5个0
data(A(i),i=2,4,1)  /2,2,3/        !隐do循环

2.数组操作技术图片

 

以上是关于Fortran数组函数--查找内容的主要内容,如果未能解决你的问题,请参考以下文章