1:字符
program charTest
implicit none
character(len = 40) :: name
name = "Oliva"
print *,name
read *
end program charTest
结果

program charTest
implicit none
character(len = 40) :: name
name = "Oliva"
print *,name
read *
end program charTest
本文标题:👩🔧Fortran--数据类型:字符
本文链接:https://www.haomeiwen.com/subject/liwvvqtx.html
网友评论