call a subroutine
The main program calls a subroutine to compute the factorial.
主程序调用一个子程序来计算阶乘。
子程序
subroutines — plural of subroutine
由程序主体调用以执行任务的代码段;计算机程序中一组固定步骤的子程序
由程序主体调用以执行任务的代码段
A section of code, called by the main body of a program, that implements a task.
计算机程序中一组固定步骤的子程序
a set sequence of steps, part of larger computer program
The programmer called a subroutine to calculate the square root.
程序员调用了一个子程序来计算平方根。
用法提示:此处 subroutine 作为名词,表示被调用的子程序,作宾语。
In this program, the main function repeatedly invokes several subroutines.
在这个程序中,主函数多次调用了几个子程序。
用法提示:此处 subroutines 是复数形式,作动词 invokes 的宾语。
A well-written subroutine can be reused across multiple projects.
一个编写良好的子程序可以在多个项目中重复使用。
用法提示:此处 subroutine 作为主语,表示具有可复用性的子程序。
The main program calls a subroutine to compute the factorial.
主程序调用一个子程序来计算阶乘。
You need to define the subroutine before you can call it.
你需要先定义子程序才能调用它。
Write a subroutine that sorts an array of integers.
编写一个对整数数组进行排序的子程序。
Developers often use subroutines in a program to avoid code duplication.
开发人员经常在程序中使用子程序以避免代码重复。
grammar · medium
易错句子I need to call subroutine.
正确表达I need to call a subroutine.
中文里“子程序”前不需要冠词,但英语中可数名词单数必须加不定冠词“a”。
grammar · medium
易错句子The error is on the subroutine.
正确表达The error is in the subroutine.
中文的“在子程序上”可能直译成“on”,但英语中表示“在子程序内部”需用介词“in”。
子程序通常指可独立调用的代码块,而函数更强调返回值。
子程序是通用术语,过程在某些语言中指无返回值的子程序。
Choose the next layer that will help you use subroutines with more confidence.
Recommended next
Missing: Collocations
Complete this area with collocations.
Includes Context & register & Memory tip
Analyze the context and learn memory tricks to remember it.
More ways to explore
Includes Synonyms & Antonyms
Expand your vocabulary with synonyms and antonyms.
Includes Spelling & sound
Explore words with similar spelling endings or sounds.
Includes Word components & Thematic vocabulary
Learn how to build related words using roots, prefixes, and thematic clusters.
Includes Idioms & Cultural references
Discover idioms, slang, and famous pop culture quotes.
Dictionary facts from ECDICT, WIKTIONARY.