z2.jpg (37.2 KB, 下载次数: 127)
z1.jpg (39.1 KB, 下载次数: 135)
Module aaa
contains
subroutine aabs(input,output)
integer ab , i
DOUBLE PRECISION input,output(:)
ab=size(output)
do i=1,ab
output(i)=abs(input)
end do
end subroutine aabs
End Module aaa
program test01
use aaa
integer , parameter :: n = 2
DOUBLE PRECISION input,output(n)
input=-1
call aabs(input,output)
end program test01
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |