以下代码示例使用业务对象类。
有关代码示例,请参阅 参考资料。
代码示例9:对实数精度的测试。
代码示例3:直角三角形测试。
所给出的代码示例非常简短。
不要被我这个简单的代码示例所蒙蔽。
以下代码示例说明了此过程。
代码示例8:保护直角三角形的属性。
描述代码生成,给出生成的代码示例。
Description of code generation and examples of generated code.
这可能会导致代码示例不能按原样编译。
XML模式应该类似于下面的代码示例。
The XML schema should look something like the code sample below.
所有代码示例都可供下载。
这里是使用这些概念的另一个代码示例。
WSDL文件应该类似于下面的代码示例。
以下两段代码示例显示了它们之间的区别。
清单2给出了代码示例,可以作为测试案例。
参见下载,获取所有代码示例的源代码。
See Download for the complete source for all the code examples.
代码示例1:非结构化代码。
此处显示的代码示例中已删除参数验证代码。
Parameter validation code has been removed from the code sample shown here.
(首先通过下面的下载部分下载代码示例。)
(First download the code sample from the download section below.)
我们来通过一些代码示例按顺序看一下每个类。
Let's take a look at each class in turn with some code examples.
代码示例2:结构化代码。
因此,我将用实际的代码示例来说明这些概念。
对于此示例场景,为您提供了代码示例以供下载。
For this example scenario, code samples are provided for you to download.
清单1中的代码示例提供了此类配置的一个示例。
The code sample in Listing 1 provides an example of such a configuration.
代码示例7:用于检验直角三角形的代码。
正如这两个代码示例所示,循环引用很容易创建。
As these two code samples show, circular references are easy to create.
以下为代码示例。
代码示例6:在主测试中检查是否为直角三角形。
然而,详细地描述代码示例已经超出了本文的范围。
However, describing the code samples in detail is beyond the scope of this article.
应用推荐