So, what's going on in this code?
那么,代码中发生了什么?
This is illustrated in this code sample.
以下代码示例说明了此过程。
The line Numbers in this code are not part of the code itself.
代码中的行号都不是代码本身的一部分。
The first step in this code is to subscribe to external events.
这个代码的第一步是订阅外部事件。
But for now, you can use the code shown in this code listing.
但现在您可使用以下代码清单中显示的代码。
In fact, there aren't many opportunities to do that at all in this code.
实际上,在这段代码中并没有太多机会这样做。
Note that there are two communications with the PPE in this code fragment, not one!
请注意在这段代码中与PPE之间有两次通信,而不是一个!
There's no error handling in this code, but note that you would need it in a real-world application.
这段代码中没有错误处理功能,但要注意,实际应用程序需要此功能。
Details, such as those shown in this code, reveal a lot about how the native processor itself operates.
细节信息,比如这段代码中所显示的这些信息,可以揭示有关本地处理器本身运行方式的很多内容。
First, be sure you understand the process that you created in this code (review Listing 10 if you need to).
首先一定要理解这些代码中的流程(如果需要请回顾清单10)。
You can, of course, add or change fields as you'd like, but let's take a look at what we have in this code.
您当然可以随心所欲地添加或更改字段,但是首先让我们看一下此代码中的内容。
I've placed explicit return calls in this code, both of which are optional in Groovy, but the code is even more cryptic without them!
我在代码中设置了显式return调用,这在Groovy中都是可选的,但如果不用,代码就更难懂了!
The first, and most obvious, change in this code is a new check for the PO namespace URI in addition to a check on the element's local name.
这段代码中第一个、也是最明显的改变是除了检查元素的本地名之后,还增加了对PO命名空间URI 的检查。
Note that nothing in this code so far is specific to the site example I'm using, so you should feel free to add this snippet to any site you are working on.
注意,到目前为止这段代码中没有任何内容是特定于我正在使用的站点示例的,因此您应当可以把这段代码片段随意添加到要使用的任意站点中。
In this code, the z-order sorting is done outside the library.
在这段代码中,z值排序是在这个库之外实现的。
In this code, 30931 is the parent process for the process 31004.
在这段代码中,30931是进程31004的祖先进程。
In this code, we perform the lookup and then check for an error condition.
这段代码用于执行查找并检查错误条件。
In this code you see the asynchronous version of your interface being called.
在这段代码中,您看到了被调用接口的异步版本。
In this code, you can't guarantee that old and ptr2 will have different values.
在此代码中,无法保证old和ptr2有不同的值。
In this code, Html is the object that will encapsulate the whole of the document.
在这段代码中,Html是封装整个文档的对象。
In this code, the inner class MyInputValidator is responsible for validating input into the acronym list.
在这段代码中,内部类MyInputValidator负责验证缩略词列表的输入。
In this code, RNames is the name of your Reader Names field, and NewValue is a string or array of strings.
在这段代码中,RNames是ReaderNames字段的名称,NewValue是字符串或字符串数组。
In this code snippet, the constant ACRONYM_LIST is the key used to get and set the data in the preference store.
在这个代码片段中,常量acronym_list是用于获取和设置首选存储中的数据的关键字。
This call also initializes the semaphore count: int sem_init(sem_t *sem, int pshared, unsigned int value). In this code
它还会对信号量计数器进行初始化:intsem_init(sem_t *sem, intpshared,unsigned intvalue)。
In this code, you can't return a value, so you must add the newly created toppings panel to the parent as part of this method.
在这段代码中,不能返回值,因此必须将新创建的Toppings面板作为此方法的一部分添加到父面板中。
In this code: pid_t waitpid(pid_t pid, int *status, int options), waitpid() infinitely waits for the child process to terminate.
在这段代码中:pid_twaitpid(pid_t pid,int *status, intoptions),waitpid()会无限期等待子进程的终止。
In this code, you get the text contents of the file and load it into an XML object with a call to the SimpleXMLElement function.
在上述代码内,先是获得文件的文本内容并通过调用SimpleXMLElement函数将其加载到一个XML对象。
In this code, we get the account ID from the entity bean BankAccount, and then set the appropriate parameters on the CallableStatement.
在这些代码中,我们从实体bean BankAccount中获取帐户ID然后为CallableStatement设置适当的参数。
In Linux, the same semget call is used to open the semaphore with 0 as the value for the semflg: int semget (key, nsems, 0). In this code.
在Linux中,可以调用相同的semget来打开某个信号量,不过此时semflg的值为0:int semget (key,nsems, 0)。
In this code, which was exported from MySQL (make your own adjustments for other RDBMSs), the table is created if it does not already exist.
该代码是从MySQL导出的(其他RDBMS请自行调整),如果不存在表格,该代码将创建一个。
应用推荐