program ex0912
implicit none
Real(kind=4), Allocatable :: A(:)
Integer(kind=1), Allocatable :: B(:)
Allocate(A(10))
Allocate(B(20))
A=10
B=20
A(-20)=1
B(-1000)=100
write(6,*)A(:)
write(6,*)A(20)
write(6,*)B(:)
write(6,*)B(-1000)
stop
end program
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |