Next, add these function definitions at line 209.
接下来,在第209行中添加这些函数定义。
In addition, the template adds simple logging to each function by printing out to the command line the name of the function called.
此外,所调用的函数的名称将输出到命令行,通过这种方式,模板即可为各函数添加简单的日志。
For example, in our applications, the standard error message will be displayed in the message line, just above the function key line in the lower part of screen.
例如,在我们的应用程序中,标准错误信息将显示在消息行中,正好在屏幕下部的功能键显示区之上。
The first line defines a function.
第一行定义了一个函数。
You can also instantly save any function you write at the command line.
还可以立即保存在命令行上编写的任何函数。
Get in the habit of remembering to add that extra character whenever you use the line limit on this function.
应养成以下习惯:只要对此函数使用行限制,就添加该额外字符。
The last line in this function refreshes the table.
该函数的最后一行代码刷新表。
The objective function on line 20 minimizes the total food cost as the total of each decision variable (amount of food) multiplied by that food's cost per unit.
第20行的目标函数要对食物的总体成本实现最小化,该值是每个决策变量(食物数量)乘以每单位食物成本的结果。
Function CARDINALITY, used in line 15, returns the number of elements in the input array.
函数CARDINALITY用于第15行,返回输入阵列中的元素数量。
However, you might not take advantage of this function on the command line as often as you can.
然而,您可能没有在命令行中像通常那样利用此功能。
The first line calls the function in Listing 4 when the page loads.
第一行在页面加载时调用清单4 中的函数。
With this captured information, we can create a list of source file names, function names and the line Numbers for the functions.
使用捕获的信息,我们可以创建源文件名、函数名和函数行号的列表。
It has been omitted in Listing 2, so the last line of the function will be returned.
清单2忽略了这个关键字,因此函数的最后一行将被返回。
This definitely isn't the most verbose of error messages, but it points to the function and the precise line number that has the offending assumption.
这肯定不是最详细的错误消息,但是它指出了具有错误假设的函数和确切行号。
Line 20 defines the objective function, which is just Rylon's profit (revenue - costs).
第20行定义了目标函数,它是Rylon公司的利润(收入-成本)。
In the default Settings or Application Settings,.net has choices for line and function modes.
在默认设置或Application设置中,. NET拥有对行和函数模式的选择。
A helper function is created to add each line to the display as shown in listing 4.
创建一个helper函数,用于向显示添加每一行,如清单4所示。
The first line of a function definition, also known as the method signature, begins with def (shorthand for define).
函数定义的第一行也称为方法签名(method signature),以def开头(def是define这个单词的缩写)。
If you called this function from the command line.
如果从命令行调用该函数。
The next line registers a function as a web service operation.
下一行代码将一个函数注册为一个WebServices操作。
The first line defines a function called square that takes an argument and emits its square root.
第一行定义一个名为square的函数,该函数可接受参数并发出其平方根。
Three arguments are now pushed onto the stack, and the print_array10 function is called (line 37).
现在将三个参数压入堆栈,并调用print_array 10函数(第37行)。
The following line runs the init function on the initial page load.
下一行在初始页面加载时运行init函数。
The mkewuid script function will output a record line for each string of characters provided on the command line.
mkewuid脚本函数为命令行上提供的每个字符串输出一个记录行。
After the data structures, state variables, and function definitions are in place, add the load_shadow_dynamics function at line 3163.
在数据结构、状态变量和函数定义就绪后,请在第3163行中添加load_shadow_dynamics函数。
The function then grabs every line in the current file (getline(1,'$')) and calls the built-in writefile() function to write them to disk.
函数随后获取当前文件(getline(1,'$'))中的每一行并调用内置的writefile() 函数来将它们写入到磁盘中。
The function t used in the last line of code is provided by Drupal.
代码最后一行中使用的函数t由Drupal提供。
The first line in the loadGrid function specifies the options for the LiveGrid.
loadGrid函数中的第一行指定LiveGrid的选项。
Similarly, the second line connects the cb_button_click function to the clicked signal on the button object.
类似地,第二行把cb _ button_click函数连接到button对象的clicked信号。
The line function takes four arguments, representing the points between which a line is drawn.
line函数接受四个参数,代表的是要在其间绘制线条的点。
应用推荐