subroutine
翻譯
子程式, 子例行程式
例句
The program calls a subroutine to calculate the total.
該程式呼叫一個子程式來計算總數。
This subroutine handles all the error messages.
這個子程式處理所有的錯誤訊息。
文法模式
((a/the)) subroutine 一個子程式。 The program calls a subroutine.
近義詞
同義詞: function, procedure, module
詞源
源自前綴“sub-”(在…之下)和“routine”(常規程序)。它指一個較大程式中的一部分程式。
記憶技巧
可以把它想像成主程式中的一個“小程式”或輔助任務。