清单10提供汇编语言伪代码。
From an assembly language perspective, Listing 10 provides the pseudo-code.
清单1.for循环的伪代码。
经过简化的生成器伪代码如下
清单15包含两个规则的定义的伪代码。
Listing 15 contains pseudocode for the definition of two rules.
清单2中提供了一个简单的伪代码例子。
清单10.for循环的伪代码。
清单7.while循环的伪代码。
清单10中的伪代码格式演示了for循环。
The for loop is demonstrated in pseudocode format in Listing 10.
清单3 . sum_list程序的伪代码。
清单14用两个规则的定义的伪代码演示了这种情况。
Listing 14 demonstrates this situation with pseudocode for the definition of two rules.
有些程序员在他们开始编写程序之前会编写一些伪代码。
Some programmers write pseudo-code before they begin writing their program.
这个程序的伪代码几乎与其scheme实现完全相同。
The pseudo-code for this program almost identically matches its Scheme implementation.
下面是一个调用事务定时器的范例伪代码,以显示正确的用法。
Here is some example pseudo-code for calling a transaction timer that shows correct usage.
逻辑的其他部分是伪代码,读者可以推导出功能所需的标准代码。
The rest of the logic is pseudo-coded with the assumption that the reader can extrapolate the standard code expected for that functionality.
代码引用被有意解释为伪代码(pseudo - code)。
The code references are intended to be interpreted as pseudo-code.
这段伪代码不仅是可能的,而且是一些JIT编译器上真实发生的。
This pseudo code is not only possible, but is exactly what happens on some JIT compilers.
清单1给出了一段简单的伪代码,为您展示如何在Python中编写方法。
Listing 1 presents a simple, pseudocode outline of how you can write a method in Python.
在真正着手构建函数之前,让我们先来看看关于伪代码的一些简单却重要的要点。
Before building a real function, let's review several points about the pseudocode that are important, but easy to overlook.
这里的叙述帮助解释图2所示的已编号的步骤(应用程序伪代码在清单1中给出)。
Here is narration to help explain the numbered steps shown in Figure 2 (the application pseudo code is shown in Listing 1).
在下面的伪代码中,这个内核线程应该在设备驱动程序的close函数中进行销毁。
This kernel thread should be destroyed in the close of the device driver in this pseudo code.
最简单的流控制语句是if 语句,它的基本语法在清单4中的伪代码中演示了。
The simplest flow control statement is the if statement, whose basic syntax is demonstrated in the pseudocode shown in Listing 4.
清单1.通用divide - and - conquer并行算法的伪代码。
Listing 1. Pseudo-code for generic divide-and-conquer parallel algorithms.
在下面的伪代码中,使用了内核api kernel _ thread来注册这个内核线程。
Use the kernel API kernel_thread to register this kernel thread in this 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.
为了使代码清晰,这里只给出了访问和操纵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.
但是对于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).
为了演示如何使用dacscheck,让我们回顾一下清单2中提供的用于构建菜单的伪代码,这次是使用Perl。
To illustrate how to use dacscheck, let's revisit the pseudo-code that builds a menu, presented in Listing 2, this time in Perl.
为了更好地理解这个解决方案,让我们考察一个使用伪代码的例子,该例子首先使用传统方法,然后使用集中的解决方案。
To better understand the solution, let's see an example using pseudo-code, first with conventional approaches, followed by the centralized solution.
继续基于这个假设的DBMS进行讨论,可以编写更一般的、类似于清单2中(类似python)伪代码的过程化查询。
To continue with the hypothetical DBMS, you could write a more general procedural query in something like the (Python-like) pseudo-code in Listing 2.
并不是真正的编程语言,好比某种“伪英语“,或“类C语言“,你现在在语法中看到的就是所谓的伪代码,非常随意。
It's just some bogus language we made up that's kind of English-like, kind of look C-like now that you've seen this syntax, but it was just an arbitrary language.
应用推荐