?? ex0822.f90
字號:
program ex0822
implicit none
external sub1, sub2 ! 聲明sub1跟sub2是子程序名稱
call sub(sub1) ! 把子程序sub1當參數傳出去
call sub(sub2) ! 把子程序sub1當參數傳出去
stop
end program
subroutine sub(sub_name)
implicit none
external sub_name ! 聲明sub_name是個子程序
call sub_name() ! 調用傳入的子程序sub_name
return
end subroutine
subroutine sub1()
implicit none
write(*,*) "sub1"
end subroutine
subroutine sub2()
implicit none
write(*,*) "sub2"
end subroutine
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -