Consider the following code segment in Listing 6.
请考虑清单6中的代码片段。
Consider the following code, which includes a function that returns a nested function.
思考一下下面的代码,它包括一个能够返回内嵌函数的函数。
Let's first consider the following code snippet in Listing 16 that shows how such a dynamic renderer can be built.
我们先考虑清单16中的代码片段,它说明如何构建这样的动态呈现器。
To write bug-free code, practice care in handling process-wide global variables like errno and h_errno. Consider the following code.
为了编写没有bug的代码,要特别小心处理进程范围内的全局变量,如errno和h_errno。
Consider the following code, where the intention is that the volatile field initialized is supposed to indicate that initialization has been completed.
考虑下面的代码,其意图是假定易失性字段initialized用于表明初始化已经完成了。
LOCK-Based Critical Sections: Although a LOCK-UNLOCK pair does not act as a full memory barrier, these operations do affect memory ordering. Consider the following code.
锁保护的临界区:经lock -UNLOCK对不能实现完全的内存屏障的功能,但是,它们也的确会影响内存访问顺序,参考下面的示例代码。
You might wonder about the String class given the issue of out-of-order writes and a reference becoming non-null prior to the constructor executing. Consider the following code.
鉴于无序写入和引用在构造函数执行前变成非null的问题,您可能会考虑string类。
To illustrate this point, consider the following use case: mainframe code needs to consume a service provided outside of the mainframe, on a distributed platform.
为了说明这一点,可参考下面的用例:在分布式平台中,大型机应用所消费的服务 是由大型机之外提供的。
For example, consider the following PHP code snippet.
例如,考虑下面的php代码片段。
This means that whichever way the code executes, a value always results. Consider the following Java code, for example.
这意味着不论以何种方式执行代码,总会产生一个值。
The UML to C++ transformation treats this as an abstract class, and generates code to reflect the same. For example, consider the following model
UML to C++转换的 UML将它看作一个抽象类,并且产生反映相同特性的代码。
As an example, consider the following scenario: One week ago, you finalized the code for the 4.0 release of your product.
一个例子,考虑下面的场景:一个星期之前,你把你产品的4.0发布终于定下来了。
As an example, consider the following scenario: One week ago, you finalized the code for the 4.0 release of your product.
一个例子,考虑下面的场景:一个星期之前,你把你产品的4.0发布终于定下来了。
应用推荐