?? ex1101.f90
字號:
module bank
implicit none
private money
public LoadMoney, SaveMoney, Report
integer :: money = 1000000
contains
subroutine LoadMoney(num)
implicit none
integer :: num
money=money-num
return
end subroutine
subroutine SaveMoney(num)
implicit none
integer :: num
money=money+num
return
end subroutine
subroutine Report()
implicit none
write(*,"('銀行目前庫存',I,'元')") money
end subroutine
end module
program ex1101
use bank
implicit none
call LoadMoney(100)
call SaveMoney(1000)
call Report()
stop
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -