😄Fortran--数据类型:整型
作者:
YI_YI_ | 来源:发表于
2019-03-25 14:02 被阅读0次1:2个字节
2:4个字节
3:8个字节
4: 16个字节
program testingInt
implicit none
!two byte integer
integer(kind=2) :: shortval
!four byte integer
integer(kind=4) :: longval
!eight byte integer
integer(kind=8) :: verylongval
!sixteen byte integer
!integer(kind=16) :: veryverylongval
!default integer
integer :: defval
print*,huge(shortval)
print*,huge(longval)
print*,huge(verylongval)
!print*,huge(veryverylongval)
print*,huge(defval)
read*
end program testingInt
本文标题:😄Fortran--数据类型:整型
本文链接:https://www.haomeiwen.com/subject/qtivvqtx.html
网友评论