Here is an example of how to use the keyworded form. Again, one formal argument and two keyworded variable arguments are passed.
下面这个列子说明如何使用双星号形式,同样的,一个形式参数和两个有默认值的变量被被传入。
This is in contrast to language-bound, API-based interaction, whereby a client invokes server functions through remote proxies by passing variable arguments in a programming language.
这是与基于特定语言API 的交互完全不同的,在基于 API 的交互中,客户端是通过传递特定编程语言的可变参数到远程代理来调用服务器函数的。
With the required parameters, variable number and keyword arguments can be used as well for positional and named parameters.
有了所需的参数,变量数和关键字参数还可以作为位置参数和名称参数使用。
Hence, command 7 expands the variable into two arguments and deletes both files.
因此,命令7把此变量展开成两个参数并删除两个文件。
How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?
如何定义具有数量可变的参数(每个参数的类型可能不同)的模板化类或函数?
A parameterized query also takes a variable number of arguments as its binding parameters.
一个带参数的查询也可以将一组数量不定的参数作为它的绑定参数。
Rather than declaring a variable, you're free just to start using it; rather than express all of the possible permutations of the types of arguments, you can just enter a list of names.
变量无需声明即可直接使用。您也不必表达参数类型的所有可能排列,只需输入一组名称。
The second procedure, square2, accepts no arguments, but instead operates on a Scheme variable (sc_arg).
第二个过程square2不接受参数,但是对一个Scheme变量(sc_arg)进行操作。
On the first invocation, sizeof... (args) displays 2, because there are only two arguments for the variable args list.
对于第一次调用,size of…(args)显示2,因为可变的args列表中只有两个参数。
The function primarily used for this is pthread_cond_wait . It takes two arguments; the first is a pointer to a condition variable, and the second is a locked mutex.
函数pthread_cond_wait主要就是用于阻塞线程的,它有两个参数;第一个是一个指向条件变量的指针,第二个是一个锁定了的互斥量。
If three or more optional arguments are supplied, the third option is assigned to the width variable.
如果提供了三个或多个可选参数,那么第三个选项被分配给width变量。
Arguments are accessed by adding their position (1, 2, 3 and so on) after the __arg variable.
通过在__arg变量后面添加参数的位置(1、2、3等)访问它们。
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控件的字符串。
C has support for defining functions with a variable number of arguments using va_list, and C++ never improved on that.
C支持使用 va_list定义具有数量可变的参数的函数,C++在这方面没有改进。
C + + 0x allows you to define functions and classes with variable Numbers of arguments, and support is now the same in GCC.
C+ +0x允许定义具有数量可变的参数的函数或类,现在GCC提供相同的支持。
Line 2 shifts the first word off of the arguments to the script and places it in the scalar variable op.
第2行将第一个词从对脚本的参数中移去,并将其放入标量变量op中。
In line (10), the global variable Http is populated, and line (11) builds up the arguments that are added to the URL.
在第(10)行,填充了全局变量http;第(11)行构建添加到URL中的参数。
All subsequent arguments are accessed by adding the size of a dword variable to the stack pointer (that is, esp + 12, esp + 16, and so on).
在堆栈指针上加上双字变量的大小(即esp +12、esp +16等等),就可以访问所有后续参数。
If you work with large arrays or hashes and use them as arguments to functions, use a reference instead of the variable directly.
如果使用大型数组或hash表,并使用它们作为函数的参数,那么应该使用它们的一个引用,而不应该直接使用它们。
The environment variable DEPT and the value 10000 have been passed as arguments to script demo.sql, which consumes these arguments in the form of substitution variables.
环境变量DEPT和10000值被作为实参传递给脚本demo . sql,该脚本将这些参数作为替代变量使用。
W3Eval supports functions with fixed and variable number of arguments. Functions are divided into following groups.
W3Eval支持带有固定或不定数量自变量的函数。
Since you're binding a string variable, you use bindString. That method takes three arguments
绑定字符串变量需要使用bindString。
To allow for added arguments beyond those defined in the parameter array (either required values or variable length sets of values), I'll have the call return the actual number of arguments processed.
为了允许除形参数组中定义的实参之外额外的实参(要么是必需的值,要么是可变长度的值),我将令这个调用返回被处理实参的实际数量。
This format indicates that a string is used to define the text and format (just like printf) and is accompanied by a variable set of arguments (identified by the ellipsis [...]).
这个格式表示的是一个用于定义文本和格式的字符串类似于printf,它同时带有一组可变个数参数由省略号表示[…]。
In this case, the function may be called with as many arguments as you wish, and those values are collected into a single variable: an array named a: 000.
在本例中,函数可以使用任意数量的参数调用,并且这些值被收集到一个单一变量中:一个名为a: 000的数组。
A general syntax for variable function arguments (... t) and their propagation (v...) is now specified.
规定了一个通用的可变函数参数(…t)及其传递(v…)。
The call begins in ./linux/kernel/printk.c in the printk function, which calls vprintk (in the same source file) after resolving the variable-length arguments using va_start.
这个调用从./linux/kernel/printk.c 中的printk函数开始,它会在使用 va_start解析可变长度参数之后调用vprintk(在同一个源文件)。
Note also that a Dispatch instance can accept a variable number of arguments; matching is done first on number of arguments, then on their types.
还要注意的是,Dispatch实例可以接受数目不定的参数;首先对参数的数目进行匹配,其次是其类型。
Filters can also be piped through each other, and they can have arguments just like in variable syntax.
过滤器也可以相互传输,它们也可以有参数,就像变量的语法一样。
Filters can also be piped through each other, and they can have arguments just like in variable syntax.
过滤器也可以相互传输,它们也可以有参数,就像变量的语法一样。
应用推荐