想象一下可以修改子程序的返回值!
Imagine being able to modify the return value of your subroutine!
它也用编好的子程序计算对数和三角。
It was also programmed with subroutines for logarithms and trigonometry.
子程序、引用和数据结构。
子程序的其余部分实现简单的震动检测算法。
The remainder of the subroutine is the implementation of the simple shake-detection algorithm.
这与调用所有其它子程序的“主例程”类似。
This is analogous to a "main routine" which invokes all other subroutines.
子程序有两种形式——过程或函数。
Subprograms occur in one of two forms — procedures or functions.
清单5 . matchwords子程序。
本文使用的示例程序是一个投骰子程序。
The sample program used for this article is a die-rolling program.
让我们来看一看这个子程序并了解一下其工作原理。
Let's take a look at the subroutine and describe how it works.
设置了子程序后,我们将快速转入简短的主程序逻辑。
With our subroutines set up, we move quickly into the short main program logic.
这种模式通常用于全局变量访问、分支以及子程序调用。
This mode is often used for global variable access, branching, and subroutine calls.
自从分支到子程序时代以来,现在有什么已经被改变了?
Figure5显示了例子程序的输出结果。
子程序是在一段程序中可以被重用的部分,就像活字那样。
A subroutine is a part of a program that can be re-used, just like movable type.
程序员喜欢使用那些很好地进行了优化,容易使用的子程序。
Programmers like well-optimized, atomic subroutines that are ready to use.
stack区域用于子程序返回地址,也用于存储自动数据。
The stack region is used for subroutine return addresses, as well as to store automatic data.
Pie模块的标绘子程序期望获得一批数组(标签和数据值)。
The plot subroutine of the GD::Pie module expects an array of arrays (labels and data values).
如果有一个或多个星号,子程序将继续执行处理来创建正则表达式。
If one or more asterisks are present, the subroutine will continue its processing to create the regular expressions.
这样做使增加互斥代码时只需要在一个子程序中进行改动。
This way, the change to add mutex code only has to happen in one place.
controller子程序也包含同客户端软件交互的用户接口。
The Controller subprogram also contains the user interface to interact with the client software.
如果等于该值的话,则存储子程序的第一行和最后一行代码,以及行号。
If it does, the first and last line, and the number of lines can be stored for the subprogram.
这些大脑将作为一个新的外来品种提供一个“人类策略数据库”的子程序。
These brains would then provide a "human strategy database" of subroutines for seeding new aliens.
接下来,我将介绍另外的一个子程序:创建动态GUI元素。
Next, I'll talk about the other sub-process, creating dynamic GUI elements.
本文使用一个标准化部件名称的示例,使用一家制造公司的部件名称子程序。
This article USES an example of standardizing part names using the part name subroutine for a manufacturing company.
一个可以通过网络存取的掷骰子程序在许多方面适合作为示例程序。
A network-accessible die roller has many features that make it suitable as a demonstration program.
子程序这章主要针对新的语法(原型和属性),以及左值属性(5.6.0)。
The subroutines chapter covers new syntax (prototypes and attributes), plus the brand new lvalue attribute (as of 5.6.0).
pthread_create()子程序使用线程参数返回新的线程ID。
The pthread_create() subroutine returns the new thread ID using a thread argument.
使用程序图来从源成员的选择中为子程序、程序和程序访问创建一个可视化访问图。
Generates a visual call graph for subroutine, procedure, and program calls from a selection of source members by using the Application Diagram.
这一选项类似于上一个选项,所有组件被整合成一个应用程序中的子程序。
This option is similar to the last option in that all the components are integrated as sub-programs in a single application.
这一选项类似于上一个选项,所有组件被整合成一个应用程序中的子程序。
This option is similar to the last option in that all the components are integrated as sub-programs in a single application.
应用推荐