program Test
implicit none
character(80) ch(8)
integer dat(8), i, j
read(*,*) ch
dat = -999
do i = 1, 8
read(ch(i),*,iostat=j) dat(i)
end do
print*,dat
end program
QQ20241029-090314.png (39.26 KB, 下载次数: 0)
li913 发表于 2024-10-29 09:04
[mw_shl_code=fortran,true]program Test
implicit none
character(80) ch(8)
li913 发表于 2024-10-29 09:04
[mw_shl_code=fortran,true]program Test
implicit none
character(80) ch(8)
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |