So I've got a function to maximize and a constraint that must be obeyed.
一个需要得到最大值的函数,和一个需要遵守的约束条件。
Returning a pointer to static data may cause a function to be non-reentrant.
返回指向静态数据的指针可能会导致函数不可重入。
You might craft a function to change the prompt to a different color on each host.
可以创建根据主机改变提示符颜色的函数。
You pass in a function to both of them; the function is called when something happens.
您传入一个函数给这两者,当有事发生时调用此函数。
The code shown in listing 4 USES just such a function to adjust the column widths.
清单4中的代码就使用这个函数调整列宽。
A function to provide a button to send information to the content list widget as input.
提供一个按钮,将信息发送到内容列表小部件作为输入。
The most important of these is map, which applies a function to every element of a list.
其中最重要的是map,它将某个函数应用到列表中的每个元素。
First, create a logging environment, then create a function to store messages, as in Listing 1.
首先,创建一个日志环境,然后创建一个函数来存储这些消息,如清单1所示。
By comparison, Net.Data requires a function to be created using the DTW_SQL language environment.
通过比较,Net . Data要求使用DTW _ SQL语言环境创建函数。
Functional expressions apply a function to one or more input arguments to create a new expression.
函数表达式将一个函数应用到一个或多个输入参数以创建新的表达式。
The first argument is the URL, and the second is a function to invoke when the call is completed.
第一个参数是URL,第二个参数是一个函数,将在完成调用后调用。
The third argument, also optional, is a function to execute if the Ajax function returns successfully.
第三个参数也是可选的,是Ajax函数成功返回时所要执行的函数。
Then you need to add a function to the Student controller (Listing 6) to be able see the HTML form.
然后,需要向Student控制器(清单6)添加一个函数,以便能够看到这个HTML表单。
Coding a function to create an empty database is a good example of a small, single-function routine.
编写创建空数据库的函数是演示小型单一功能例程的好例子。
Next, add a function to the Student controller called edit , which is where the edit option is pointing.
接下来,向Student控制器添加一个函数,称为edit,这也是edit选项所指向的位置。
It then calls the jQuery blur method, which binds a function to the onblur event for the username field.
随后调用jQueryblur方法,后者将一个函数绑定到用户名字段的onblur事件。
Both versions take a function to apply at each node that returns a replacement node (or the original node).
两个版本均在各节点应用一个函数来返回替换的节点(或原始节点)。
The privileges view in this designer allows you to assign privileges on a function to a user or a role.
设计程序的privileges视图允许您为某个用户或角色分配函数权限。
If you submit the form, you'll get an error because you haven't created a function to receive the form's post.
如果提交此表单,就会得到一个错误,因为我们尚未创建一个函数来接收此表单的发布。
You have just one more thing to do: add a function to load the successful JSON request and populate the hotels.
您只需做一件事:添加一个函数,以便装载成功的JSON请求,并填充hotels。
You usually see this error when you assign a value returned from a function to a variable with a more specific type.
你通常会把函数返回值赋给拥有更特定类型变量的时候遇到这样的错误。
As a result, you can assign a function to a variable (remember that in Python, variables are dynamically typed).
因而,您可以将函数指派给一个变量(切记,在Python中变量是动态类型化的)。
Since the table is a visual representation of a directory listing, we need a function to list all the images in a directory.
该表是目录列表的可视化表示,因此需要一个函数列出目录中的所有图像。
It takes an XML document as input and returns a sequence of nodes or the result of applying a function to a sequence of nodes.
它接受一个XML文档作为输入,返回一系列节点或对一系列节点应用函数的结果。
This article assumes that you have some experience using PHP already and can use a function to pass a variable and return a result.
本文假设您已经具有一些使用PHP的经验,并能够使用函数来传递变量并返回结果。
Use a global document variable against which XPath expressions are evaluated, and create a function to which you can pass an expression.
使用一个全局文档变量来定义进行判断的XPath表达式,并创建一个接收表达式的函数。
The map operation transforms a collection into a new collection by applying a function to each of the elements, as illustrated in Figure 6.
map运算会对每个元素应用一个函数来将一个集合转换成一个新的集合,如图6所示。
At the client, as long as there is a function to handle the challenges thrown by the server, the client application is platform independent.
在客户机上,只要有一个函数能够处理服务器发出的询问,客户机应用程序就是与平台无关的。
The configuration of PHP assertions allows you to specify a function to be called whenever assert is invoked. Of course, I used a lambda.
PHPassertions的配置,使得您可以在不管是否已调用assert的情况下,指定要调用的函数。
The other menu customization creates a function to show an alert, dialog box, or both that displays the UNID of one or more selected documents.
另一个菜单定制创建函数以显示警报、对话框或两者同时显示,它们会显示一个或多个所选文档的UNID。
应用推荐