You can add an optional argument, a variable that holds the return code from the external program, such as 0 for success, which provides a better mechanism for debugging.
您可以添加可选的参数,即保存从外部程序返回的代码的变量,比如表示成功的0,这为调试提供更好的机制。
Change it to a constructor argument at the same time, and make the caller have a member variable for that same dependency.
同时给构造函数加上相应的参数,给构造函数的调用者加上一个成员变量来体现依赖关系。
Otherwise, any whitespace in the variable is interpreted as an argument delimiter.
否则,变量中的任何空格都被解释为参数分隔符。
If a variable contains whitespace, the double quotation marks keep the variable expansion intact as a single argument.
如果一个变量包含空格,双引号会按原样把变量展开为一个参数。
A manifestly typed language forces you to declare each variable and each function argument.
显式类型语言要求声明每个变量和每个函数参数。
Validation is performed in the code to ensure that only one argument is provided, which is used as the variable value; otherwise the currently set value is returned.
代码中执行了确认操作,以确保提供了唯一的论题,它用作变量值;否则就会返回当前设置的值。
Keep in mind the new variable argument support, which is designated by the... shown in Listing 4 above.
要记住新的变量参数支持,它是由…指派的,如上面清单4所示。
Length of a string variable: Input argument for the SUBSTR function, which determines the desired length of the resulting string or output of the length function.
字符串变量的长度:substr函数的输入参数,决定了结果字符串的期望长度或length函数的输出。
If a variable contains whitespace, the whitespace is always preserved, and the variable always evaluates to a single argument see Figure 4.
如果变量包含空格,那么空格会被保留,变量总是作为单一参数,见图4。
It requires an integer argument, errno, which should be the actual value of the global errno variable.
它需要整数参数errno,该参数应该是全局errno变量的实际数值。
Note here that the argc variable (argument count) is implicit, because the length of the argv list is known.
请注意这里的argc变量(参数数量)是隐式的,因为argv列表的长度已经知道。
Moreover, it deliberately ignores any environment variable Settings for CLASSPATH or the command-line argument -cp that you supply.
而且,它还故意忽略针对CLASSPATH的全部环境变量设置,还忽略您提供的命令行参数-cp。
To access derived data types, you use the copy_userdata function, which copies the required data from a non-vue variable, that is, from memory pointed by an argument to a vue script variable.
要想访问派生的数据类型,应该使用copy_userdata函数,它把所需的数据从非vue变量(也就是从参数指向的内存)复制到Vue脚本变量。
Because we'd like our Lists to be generic in the type of element they contain, we'd like our static factory method to take an argument of type variable t and return an instance of List.
因为我们希望List成为其所包含的元素类型的泛型,所以希望静态factory方法带有类型变量t这一参数并返回List的实例。
The coding_name variable on line 330 is derived from a command-line argument specifying the encoding of the input file; if no such command line is provided, UTF-8 is used, instead.
第330行的coding_name变量源自于一个指定输入文件编码的命令行参数;如果没有提供这种命令行,就使用UTF - 8编码。
Don't forget to compile with the -source 1.5 option or the compiler won't recognize the variable argument list.
不要忘记用- source 1.5选项编译,否则编译器不会识别变量参数列表。
The prefix argument is used as a prefix for the variable names inside the generated code.
prefix参数被用作在已生成的代码内部的变量名的前缀。
Each can be assigned to a variable, passed as an argument, or returned from a function. For instance, here's an example of storing a function.
每个都可以赋值给一个变量,作为参数传递,或作为返回值从函数中返回。
Also, note that by providing the value of the isprime variable, you can put the done probe into the code once with that value as an argument, in place of using different probes.
另外,通过提供isprime变量的值,可以在代码中放置done探测,用这个值作为参数,以此替代其他探测。
The second call to f will have the variable list containing only 8.333, while a becomes the first argument.
对f的第二次调用的可变列表只包含 8.333,而a变成第一个参数。
Line 4 sets the variable was to the value of the next item in the argument list.
第4行将变量was设置为参数表中下一项的值。
After getopt has returned -1, the global variable optind holds the index of the first argument that was not part of the command-line options.
getopt返回- 1后,全局变量optind保存第一个不属于命令行选项的参数的索引。
And while the argument over including such features rarely rests on a single variable, it is important to know which will resonate with decision-makers.
在争论这类特征很少取决于一个单一变量时,重要的是找到哪一点能与决策制定者产生共鸣。
For method calls, I tried the same three access variations as for field access, with the added variable of using no-argument methods versus passing and returning a value on the method calls.
在方法调用中,我试用了与字段接入相同的三种接入变量,并增加了使用无参数方法变量,而不是在方法调用中传递和返回一个值。
This means that the UDR always returns the same value for given argument(s), and that the UDR does not modify the database or variable state.
也就是说,对于给定的参数,UDR始终返回相同的值,而且 UDR不能修改数据库或变量状态。
Now that the Scheme variable has been created, you can simply call the Scheme function square2 (this time without an argument) and follow the same process to grab and dereference the return value.
现在已经创建了Scheme变量,接下来就可以调用scheme函数square2(这一次没有参数),并用相同的方式捕捉和取消引用返回值。
Line 22 instantiates the site variable using two arguments: the first argument contains a reference to an OleFrame, and the second argument contains a string that identifies the ActiveX control.
在第22行上,通过使用两个参数来实例化site变量:第一个参数包含对OleFrame的引用,第二个参数包含标识activex控件的字符串。
If the flag takes an argument, the argument is stored in the global variable optarg.
如果此标记带有参数,则参数存储在全局变量optarg中。
Listing 4 presents the Scheme functions, which implement the same behavior, but the first with an argument and the second with a static variable.
清单4展示了Scheme函数,这些函数实现相同的行为,但是第一个函数有一个参数,第二个函数有一个静态值。
A friend function named spacefriend, which is a friend of class space, and which takes the class object as an argument and prints the value of its variable x.
名为spacefriend的友元函数,它是space类的友元,它的参数是类对象,输出类对象的x变量的值。
应用推荐