?? ex0917.f90
字號(hào):
program ex0917
implicit none
integer :: a=2
integer :: b=3
character(len=20) :: string
character(len=20) :: fmtstring="(I??'+'I??'='I??)"
write(fmtstring(3:4),"(I2.2)") int(log10(real(a))+1)
write(fmtstring(7:8),"(I2.2)") int(log10(real(b))+1)
write(fmtstring(10:11),"(I2.2)") int(log10(real(a+b))+1)
write(*,*) fmtstring
stop
end program
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -