subprogram that does sth
子程序常被主程序调用。
The main program calls a subprogram that calculates the square root.
主程序调用一个计算平方根的子程序。
子程序
subprograms — plural of subprogram
包含在更大程序中的程序;子程序;[电] 子程序
a set sequence of steps, part of larger computer program
包含在更大程序中的程序
A program contained within a larger program.
The main program calls a subprogram to calculate the square root.
主程序调用一个子程序来计算平方根。
用法提示:此处 subprogram 为名词,表示被主程序调用的子程序。
Each subprogram in the library is designed to perform a specific task.
库中的每个子程序都旨在执行特定任务。
用法提示:subprogram 用作名词,指库中一个个独立的子程序。
Debugging a complex subprogram can be time-consuming.
调试复杂的子程序可能很耗时。
用法提示:subprogram 为名词,作为动名词短语 Debugging 的宾语。
子程序常被主程序调用。
The main program calls a subprogram that calculates the square root.
主程序调用一个计算平方根的子程序。
You need to call the subprogram before the loop.
你需要在循环之前调用子程序。
This is a subprogram for sorting data.
这是一个用于排序数据的子程序。
grammar · medium
易错句子We need to subprogram the calculation.
正确表达We need to create a subprogram for the calculation.
“subprogram” 是名词,不能当作动词使用。应改为 “create a subprogram”,表示创建子程序。
grammar · medium
易错句子The program consists of several subprogram.
正确表达The program consists of several subprograms.
“subprogram” 是可数名词,复数形式需加 “-s”。此处 “several” 后应跟复数 “subprograms”。
子程序(subroutine)与子程序(subprogram)基本同义,但‘subroutine’更常见于编程语境,强调可被重复调用的代码块;而‘subprogram’是更正式的术语,泛指任何程序内部调用的独立单元。
函数(function)通常有返回值,而子程序(subprogram)不一定返回值,可以包含无返回的过程;在编程中,函数是子程序的一种特定类型。
过程(procedure)通常不返回值,而子程序(subprogram)可以包括有返回值的函数和无返回的过程;‘procedure’特指无返回的子程序。
Choose the next layer that will help you use subprograms 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.