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.
例如,在我们的应用程序中,标准错误信息将显示在消息行中,正好在屏幕下部的功能键显示区之上。
That is, if a function has a certain set or range of valid values for its arguments, an assertion to this effect can be placed as the first line of code in the function.
那就是说,如果函数有确定的有效值集合或范围可作为参数,可以将检验参数是否有效的断言放在该函数代码的第一行。
Get in the habit of remembering to add that extra character whenever you use the line limit on this function.
应养成以下习惯:只要对此函数使用行限制,就添加该额外字符。
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行,返回输入阵列中的元素数量。
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忽略了这个关键字,因此函数的最后一行将被返回。
For each line in the line buffer for a CU, check for the low address match to find the first line number for the function.
要获得CU的行缓冲的每一行,则需要检查低位地址匹配以找到函数的第一行的行号。
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.
这肯定不是最详细的错误消息,但是它指出了具有错误假设的函数和确切行号。
One way to determine the success or failure of the function testing is by counting the line commands that have failed, that is, that have a return code different than 0.
决定功能测试成功还是失败的一种方法是计算已失败行命令的数量,即返回码不是0。
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拥有对行和函数模式的选择。
The function first builds a list of all the relevant line numbers (range(a:firstline, a:lastline)).
函数首先构建一个包含所有相关行号的列表(range(a:firstline, a:lastline))。
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这个单词的缩写)。
The body of the function then starts on the next line, and continues until a matching endfunction keyword is encountered. For example.
函数体然后从下一行开始,一直连续下去,直到遇到一个匹配的endfunction关键字。
Exec -this handy PHP function sends a string for the operating system's command line to process.
exec—这个方便的php函数发送一个字符串供操作系统的命令行处理。
The first thing that we do is determine which of the columns is selected by calling the widget function of the SelectionEvent (line 24 in listing 3).
我们做的第一件事是调用SelectionEvent的widget函数来确定选定了哪一列(清单3中的第24行)。
The map class implements the map function, which goes through each line of the log file and gets the application's name.
map类实现映射功能,它搜索日志文件的每一行,寻找应用程序的名称。
The first line defines a function called square that takes an argument and emits its square root.
第一行定义一个名为square的函数,该函数可接受参数并发出其平方根。
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 first line in the loadGrid function specifies the options for the LiveGrid.
loadGrid函数中的第一行指定LiveGrid的选项。
The next line registers the retrieveByType function so that it is exposed as a Web service operation.
下一行注册 retrieveByType函数以将其公开为Web服务操作。
Typing 'list main' will print the source listing starting around the main function and pressing return again will reveal the wib function call is on line 21.
输入'listmain '将打印从main函数开始的源码清单,再次按回车将显示第21行上的wib函数调用。
The function retrieves the item information for an order line and performs the necessary stock updates.
该函数为一个订购项(orderline)检索产品信息,并执行必要的库存更新。
The line function takes four arguments, representing the points between which a line is drawn.
line函数接受四个参数,代表的是要在其间绘制线条的点。
Scottevest combines style and function with its line of about 30 different pieces of clothing (jackets, vests, hoodies, pullovers, pants, shorts and shirts) for men and women who travel often.
Scottevest将时尚和功能融入其大约30种不同款式的服装中(夹克、背心、连帽衫、套头衫、长裤、短裤和衬衫),专为经常旅行的男女打造。
应用推荐