V2EX  ›  英汉词典
Enqueued related words: Subprogram

Subroutine

释义 Definition

子程序;子例程:在计算机程序中可被反复调用的一段独立代码,用来完成某个特定任务(在不同语言里也常称 function/procedure/method)。在某些语境下也可泛指“例行步骤/固定流程”(较少见)。

发音 Pronunciation (IPA)

/ˈsʌbˌruːtiːn/

例句 Examples

A subroutine prints the user’s name.
一个子程序会打印用户的名字。

Before saving the file, the program calls a subroutine that checks for errors and formats the data.
在保存文件之前,程序会调用一个子程序来检查错误并格式化数据。

词源 Etymology

sub- 表示“次级、下属”,routine 表示“常规程序/例行步骤”。合起来表示“从属的常规程序”,引申为“主程序中可被调用的独立代码块”。该词在计算机早期编程与软件工程语境中广泛使用。

相关词 Related Words

文学作品 Literary Works

  • 《人月神话》(The Mythical Man-Month) — Frederick P. Brooks Jr.(讨论软件工程与程序组织方式时常涉及子程序/模块化概念)
  • 《计算机程序的构造和解释》(Structure and Interpretation of Computer Programs) — Harold Abelson & Gerald Jay Sussman(讲解过程/子程序式抽象与调用)
  • 《编程珠玑》(Programming Pearls) — Jon Bentley(在算法与程序设计技巧的叙述中常出现子程序式分解思路)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1105 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 17:14 · PVG 01:14 · LAX 09:14 · JFK 12:14
♥ Do have faith in what you're doing.