subroutine
翻译
子程序
例句
The programmer is writing a new subroutine.
程序员正在编写一个新的子程序。
This subroutine validates the user's input.
这个子程序验证用户的输入。
语法模式
a subroutine ((to do sth.)) (用于做某事的)子程序 We need a subroutine to validate the input.
近义词
Synonyms: 函数, 过程, 子程序
词源
源自 'sub-'(在...之下,一部分)+ 'routine'(一系列指令)。指一个较大程序的一部分例程。
记忆技巧
可以把它想象成主计算机“例程”或程序的一个“子部分”,用于执行特定任务。