示例程序中演示了所有这些步骤。
示例程序维护自己的内部序号。
The sample program maintains its own internal sequence number.
现在来看一下示例程序中的代码。
图3列出了这个示例程序的类。
示例程序使用一个简单的循环。
bat——作为订户执行示例程序。
JMSDemoSub.bat - executes the sample program as a subscriber.
清单6 . xev示例程序输出。
该示例程序提示输入用户标识和密码。
bat——作为发布者执行示例程序。
JMSDemoPub.bat - executes the sample program as a publisher.
本文使用的示例程序是一个投骰子程序。
The sample program used for this article is a die-rolling program.
用于调试示例程序的dbx插件的代码。
让我们再看一下示例程序以便理解原因所在。
这个示例程序还输出了当时通用寄存器的值。
The sample program has also dumped the general purpose register values in this case.
创建一个示例程序使用的J2SE规则会话。
Creates a J2SE rule session to be used by the sample program.
产品文档和示例程序。
示例文件夹中提供了一个详尽的示例程序列表。
There is an exhaustive list of sample programs provided in the samples folders.
本节的示例程序在一个整数数组上实现选择排序。
The example program for this section implements a selection sort on an array of integers.
如果还没有下载示例程序,现在就执行这个步骤。
If you haven't already, go ahead and download the sample program now.
MQ附带了演示如何获取和放置消息的示例程序。
MQ comes with sample programs that illustrate how to get and put messages.
注意:示例程序的执行通常产生如下所示的结果。
Note: a typical execution of the sample program will generate the following output.
对于我在这儿提供的示例,你可以查看示例程序。
For the examples I've provided here, you can view the sample application.
在示例程序中,这个任务就是休眠半秒100次。
In the example program, that task is to just sleep for a half second, 100 different times.
这些示例程序同时以已编译和未编译的形式提供。
下面这个示例程序使用了 SIGTERM信号。
在示例程序中,总是用4k的缓冲区读取事件数据。
In the sample program, event data is always read with a buffer of 4k.
讨论和示例程序都只限于非静态数据成员和虚函数。
The discussion and the sample program are limited to non-static data members and virtual functions.
bat——执行示例程序,以便在队列上生成消息。
JMSDemoSend.bat - executes the sample program to produce messages on a queue.
bat——执行示例程序,以便在队列上使用消息。
JMSDemoReceive.bat - executes the sample program to consume messages on a queue.
示例程序的二进制文件提供在示例包中(参见下载)。
Binaries for the sample programs are provided in the samples pack (see Downloads).
本文提供的下载文件包含了此示例程序的完整源代码。
The download file included with this article contains the full source code for this sample program.
应用推荐