To simplify this example, we'll just add a new class whose methods return some simple data.
为了简化这个示例,我们添加了一个新类,它的方法返回一些简单数据。
Although this example shows just a very simple case, this tool has been used to handle more than 30 panels in the TDWC version 8.5.
虽然本例只展示了一个非常简单的情况,但是此工具已经被用来处理TDWC version 8.5内的30多个面板。
Now we just need a program to convert our macro into standard C. For this simple example, Perl is used because it can evaluate user code in a string, and its syntax is largely C-like.
现在我们只需要一个程序将这个宏转换成标准的C 语言就可以了。对于这个简单的例子来说,我们将使用Perl 来实现这个程序,因为它可以对字符串中的用户代码进行评测,其语法也与 C 语言非常类似。
But our example just deals with simple values (and side effects). We want to make any use of a few attributes log the action to stderr.
但此处的示例仅处理简单的值(和副作用)。
Of course, as you can see in the example diagram, the tree can get very big with only a few moves, and to look even just five plies ahead can quickly overwhelm a simple computer.
当然,正如你在例图中看到的那样,仅仅几个步骤也会令这棵树变得异常庞大,对于一台普通的计算机来说,预测五个步骤就足以令其迅速崩溃。
When implemented using a good BRMS, these rules can be written in simple English phrases, just as the example shown in the knockout condition example from Listing 1.
当使用良好的BRMS来实现时,可以使用简单的英语短语来编写这些规则,就像清单1中的淘汰条件示例所示的例子一样。
You can then work with what class or just print out information about it; see Listing 11 for a simple example.
然后可以处理任何类或打印出它的相关信息。请参阅清单11中的简单示例。
In this simple example, the movies.xml file is just a flat file with some references to short home movies of mine.
这个简单的例子中,movies .xml只是一个平面文件,包含一些我自己的家庭短片的引用。
A simple application could just read from the console, while a more common example might receive an HTTP request from a Web browser or a SOAP message from another application.
简单应用可以只从控制台读取信息,更常见的例子则可能是从Web浏览器接收HTTP请求,或从其它应用接收SOAP消息。
As you can see, this program is really just a simple inline function hook, no more complex than the example from Chapter 5.
可以看到,这个程序不过是个简单的内嵌函数挂勾,不比第5章的例子复杂多少。
Since the example that we have taken is a simple one, we can have a block diagram as shown below. We don't worry about what's inside the magical black boxes just yet.
因为我们举了一个非常简单的例子,我们可以展现该系统的框图如下。现在,我们不关心这个魔法盒子中的具体实现细节。
Since the example that we have taken is a simple one, we can have a block diagram as shown below. We don't worry about what's inside the magical black boxes just yet.
因为我们举了一个非常简单的例子,我们可以展现该系统的框图如下。现在,我们不关心这个魔法盒子中的具体实现细节。
应用推荐