subroutine
US /ˈsʌb.ruː.tiːn/
UK /ˈsʌbruːˌtiːn/
名词
子程序, 子例程
a sequence of instructions within a larger program that performs a specific task, often used multiple times within the program or by other programs
示例:
•
The main program calls a subroutine to handle data validation.
主程序调用一个子程序来处理数据验证。
•
Writing modular code with subroutines improves readability and reusability.
使用子程序编写模块化代码可以提高可读性和可重用性。