记号包括了数据流图,结构图,hipo图,5过程模板,伪代码,结构化流程图,结构化英语和判定表。
The notations included data flow diagrams, structure charts, HIPO diagrams, 5 procedure templates, pseudo code, structured flowcharts, structured English, and decision tables.
清单15包含两个规则的定义的伪代码。
Listing 15 contains pseudocode for the definition of two rules.
好,这儿我想大家明白的就是,养成解决问题时先写伪代码的好习惯,把步骤都写出来,我想要告诉你们的是一个好的程序员。
Right, so the things we want you to take away from this are, get into the habit of using pseudo code when you sit down to start a problem, write out what are the steps.
清单1中的伪代码是一个简化的SQL查询,它获取所有活跃职员的姓名并列出他们及英语的组织名称。
The pseudo code in Listing 1 shows a simplified SQL query that retrieves employee names for all active employees and lists them with the English names of their organizations.
关于这个问题尤其要注意的是,实际上当我考虑这个-,问题的时候我想这么做,我会去写一点伪代码。
And in particular, if I think about that problem - actually I want to do this - if I think about that problem, I'm going to write a little piece of pseudo code.
后面跟着要介绍的是抽象数据缓冲区方案,并通过伪代码实现来进行说明,这种方案解决了许多问题;最后要介绍的是一些代码片断,用以演示该解决方案的好处。
That's followed by an abstract data buffer scheme, illustrated by a pseudo implementation, that solves many of those problems, followed by code snippets demonstrating the solution's benefits.
在下面的伪代码中,这个内核线程应该在设备驱动程序的close函数中进行销毁。
This kernel thread should be destroyed in the close of the device driver in this pseudo code.
在下面的伪代码中,使用了内核api kernel _ thread来注册这个内核线程。
Use the kernel API kernel_thread to register this kernel thread in this pseudo code.
但Python Python是一种很值得展示的工具,因为它读起来像流线型的伪代码,并且广泛可用。
Python is a good vehicle for exposition, though, because it reads like streamlined pseudo code, and is widely available.
在真正着手构建函数之前,让我们先来看看关于伪代码的一些简单却重要的要点。
Before building a real function, let's review several points about the pseudocode that are important, but easy to overlook.
最简单的流控制语句是if 语句,它的基本语法在清单4中的伪代码中演示了。
The simplest flow control statement is the if statement, whose basic syntax is demonstrated in the pseudocode shown in Listing 4.
这个程序的伪代码几乎与其scheme实现完全相同。
The pseudo-code for this program almost identically matches its Scheme implementation.
这里的叙述帮助解释图2所示的已编号的步骤(应用程序伪代码在清单1中给出)。
Here is narration to help explain the numbered steps shown in Figure 2 (the application pseudo code is shown in Listing 1).
这段伪代码不仅是可能的,而且是一些JIT编译器上真实发生的。
This pseudo code is not only possible, but is exactly what happens on some JIT compilers.
清单14用两个规则的定义的伪代码演示了这种情况。
Listing 14 demonstrates this situation with pseudocode for the definition of two rules.
有些程序在把它们自己当作输入运行时,可能永远不会停下来,既然这样——那么让我们用DOES-HALT编写一端伪代码,用它来测试当一个程序把它自己作为输入参数时会发生什么好了。
Some programs might never halt when run on themselves, though -- so let's use DOES-HALT to write pseudo-code for a program that checks to see what happens when a program is given itself as input.
有些程序员在他们开始编写程序之前会编写一些伪代码。
Some programmers write pseudo-code before they begin writing their program.
清单2中提供了一个简单的伪代码例子。
继续上课,刚才我们只写了一个伪代码,或者说简单地过了一下。
Alright, we are back so we just wrote a programming pseudocode or walk through a programming pseudocode.
清单1中假定的示例(伪代码)和下面的清单2更清楚地说明了这一点。
The hypothetical sample (pseudocode) in Listing 1 and Listing 2 below make it clearer.
为了使代码清晰,这里只给出了访问和操纵CM用户组的代码,并且有些地方用伪代码替代。
In order to keep the code clear, only the code that accesses and manipulates CM user groups is provided, and some parts are replaced by pseudo code.
逻辑的其他部分是伪代码,读者可以推导出功能所需的标准代码。
The rest of the logic is pseudo-coded with the assumption that the reader can extrapolate the standard code expected for that functionality.
然后是养成用伪代码,来帮助你定义控制流的习惯。
And get into the habit of using it to help you define what is the flow of control.
为了更好地理解这个解决方案,让我们考察一个使用伪代码的例子,该例子首先使用传统方法,然后使用集中的解决方案。
To better understand the solution, let's see an example using pseudo-code, first with conventional approaches, followed by the centralized solution.
清单10提供汇编语言伪代码。
From an assembly language perspective, Listing 10 provides the pseudo-code.
现在应用程序员可以编写代码(伪代码)将2gb的数据项存入网格中,如下面的列表1所示。
So now an application programmer can write the (pseudo) code to store a data element of 2gb into the grid as shown in Listing 1 below.
代码引用被有意解释为伪代码(pseudo - code)。
The code references are intended to be interpreted as pseudo-code.
下面是一个调用事务定时器的范例伪代码,以显示正确的用法。
Here is some example pseudo-code for calling a transaction timer that shows correct usage.
然后是最右边的i++,我们上周在socks例子的伪代码中,曾经见到过,不是么?只是代表i加1而已。
And then on the right hand side I + +, we saw that in pseudocode with our socks example last week that just says increment I.
但是对于while循环,这意味着在循环终止后,else子句中的代码被执行一次(参见清单7中的伪代码)。
For a while loop, however, this means the code in the else clause is executed once, after the loop is terminated (see the pseudocode shown in Listing 7).
应用推荐