英语单词查询
subroutine
「subroutine」的意思
n. [计] 子程序
n.[计]子程序
「subroutine」的用法
subroutine子程序,子例程 - 在编程中,子程序是一段可以被多次调用的代码块。
「subroutine」的例句
The subroutine is called from the main program.
该子程序从主程序中被调用。
We can reuse the subroutine without rewriting the code.
我们可以重用该子程序而不必重写代码。
The subroutine handles the error checking.
该子程序处理错误检查。
The subroutine is used to calculate the sum of two numbers.
该子程序用于计算两个数字的和。
We can pass parameters to the subroutine.
我们可以将参数传递给该子程序。
The subroutine is called recursively.
该子程序递归调用自身。
The subroutine is used to sort an array.
该子程序用于对数组进行排序。
We can use the subroutine in different parts of the program.
我们可以在程序的不同部分使用该子程序。
The subroutine is used to validate user input.
该子程序用于验证用户输入。