noun

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”(常規程序)。它指一個較大程式中的一部分程式。

可以把它想像成主程式中的一個“小程式”或輔助任務。

本頁面旨在提供學習支援。請將其作為學習參考,而非正式詞典使用。