去:可变参数函数和参数太多?
这是与基于特定语言API 的交互完全不同的,在基于 API 的交互中,客户端是通过传递特定编程语言的可变参数到远程代理来调用服务器函数的。
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.
C+ +0x允许定义具有数量可变的参数的函数或类,现在GCC提供相同的支持。
C + + 0x allows you to define functions and classes with variable Numbers of arguments, and support is now the same in GCC.
规定了一个通用的可变函数参数(…t)及其传递(v…)。
A general syntax for variable function arguments (... t) and their propagation (v...) is now specified.
这个调用从./linux/kernel/printk.c 中的printk函数开始,它会在使用 va_start解析可变长度参数之后调用vprintk(在同一个源文件)。
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.
C支持使用 va_list定义具有数量可变的参数的函数,C++在这方面没有改进。
C has support for defining functions with a variable number of arguments using va_list, and C++ never improved on that.
如何定义具有数量可变的参数(每个参数的类型可能不同)的模板化类或函数?
How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?
可以在同一个函数中同时使用命名参数和可变参数,只需要将可变参数的省略号放在命名参数列表之后。
Named and variadic parameters can be used in the same function, simply by placing the variadic ellipsis after the list of named parameters.
因此,您永远都不该为一个不可变类提供一个无参数的构造函数。
Thus, you should never have a no-argument constructor for an immutable class.
当作为构造函数参数时,这些可变或者不可变的变量会在一个对象被实例化的时候被初始化。
When used as constructor parameters, the mutable or immutable variables specified will be initialized when an object is instantiated.
函数随带一个格式化字符串和一个可变数目的参数。
The function takes a format string and a variable number of arguments.
具有可变参数列表的函数(…)。
本文对无线传感器网络的节点配置问题的研究方法是一个对建立的目标价值函数的可变参数集进行优化,从中求得最优值的过程。
For the problem of WSN node deployment, this paper's researching approach is a process of optimizing the variable parameter set of object value function and then finding the optimal result.
地质和天文变量中常常存在参数可变的振荡衰减型自相关函数。
Variations of geology and astronomy have constantly parameter variable auto-correlation function of vibration attenuation type.
编译器只会对具有显式参数的完整函数定义和简单的不可变值执行自动泛化。
The compiler performs automatic generalization only on complete function definitions that have explicit arguments, and on simple immutable values.
最后,一个最不常用的选择是可以让函数调用可变个数的参数。
Finally, the least frequently used option is to specify that a function can be called with an arbitrary number of arguments. These arguments will be wrapped up in a tuple.
最后,一个最不常用的选择是可以让函数调用可变个数的参数。
Finally, the least frequently used option is to specify that a function can be called with an arbitrary number of arguments. These arguments will be wrapped up in a tuple.
应用推荐