• 参数和形参之间是什么关系?

    What is the relationship between arguments and formal parameters?

    youdao

  • 将一个方法的形参设置为常量

    Qualifying a method's formal parameter as const

    youdao

  • 清单6 .int形参定义类。

    Listing 6. int parameter definition class.

    youdao

  • 在第三对中,形参列表只有默认实参不同。

    In the third pair, the parameter lists differ only in their default arguments.

    youdao

  • 在方法主体用来给参数值作为占位符中的变量叫做形参。

    Within the body of a method, the variables that act as placeholders for the argument values are called formal parameters.

    youdao

  • 它跟在构造函数的形参表之后,以冒号开关。

    It follows the constructor parameter list and begins with a colon.

    youdao

  • 编译器将选出形参个数和类型都与实参匹配的函数。

    The compiler selects those functions that have the required number of parameters and for which the argument types match the parameter types.

    youdao

  • 将指定实参连接(绑定)到静态结构图中某个模板的形参。

    Connects (binds) designated arguments to a template's formal parameters in your Static Structure diagram.

    youdao

  • 构造函数的形参指定了创建类类型对象时使用的初始化式。

    The constructor's parameters specify the initializers that may be used when creating objects of the class type.

    youdao

  • 在整个标准库中,经常使用形参为一对迭代器的构造函数。

    The constructors that take a pair of iterators are an example of a common form used extensively throughout the library.

    youdao

  • 使用引用形参,函数可以直接访问实参对象,而无须复制它。

    By using a reference parameter, the function can access the object directly without copying it.

    youdao

  • 因为数组不能复制,所以无法编写使用数组类型形参的函数。

    Because we cannot copy an array, we cannot write a function that takes an array type parameter.

    youdao

  • 最后,清单6显示了int形参值的形参定义子类的部分实现。

    Finally, Listing 6 shows a partial implementation of the parameter definition subclass for int parameter values.

    youdao

  • 通常,将数组形参直接定义为指针要比使用数组语法定义更好。

    It is usually a good idea to define array parameters as Pointers, rather than using the array syntax.

    youdao

  • 例中的调用只有一个实参,而这些函数分别带有零个和两个形参。

    Our call has only one argument, and these functions have zero and two parameters, respectively.

    youdao

  • 框架的边上要标明函数的名字,框内填写函数内部的形参和变量。

    A frame is a box with the name of a function beside it and the parameters and variables of the function inside it.

    youdao

  • 对于上述几种情况,有效的解决办法是将形参定义为引用或指针类型。

    In these cases we can instead define the parameters as references or Pointers.

    youdao

  • 为了确定最佳匹配,编译器将实参类型到相应形参类型转换划分等级。

    In order to determine the best match, the compiler ranks the conversions that could be used to convert each argument to the type of its corresponding parameter.

    youdao

  • 由于忽略了数组长度,形参定义中如果包含了数组长度则特别容易引起误解。

    Because an array dimension is ignored, including a dimension in a parameter definition is particularly misleading.

    youdao

  • 在向函数传递大型对象时,需要使用引用形参,这是引用形参适用的另一种情况。

    The other circumstance in which reference parameters are useful is when passing a large object to a function.

    youdao

  • 出现在相同作用域中的两个函数,如果具有相同的名字而形参表不同,则称为重载函数。

    Two functions that appear in the same scope are overloaded if they have the same name but have different parameter lists.

    youdao

  • 最后剩下的部分就是处理错误报告(例如一个未知的形参标记字符或者一个超出范围的数字值)。

    The only part remaining is the handling of error reporting (such as an unknown parameter flag character or a numeric value out of range).

    youdao

  • 根据实参个数选出潜在的可行函数后,必须检查实参的类型是否与对应的形参类型匹配。

    Having used the number of arguments to winnow the potentially viable functions, we must now look at whether the argument types match those of the parameters.

    youdao

  • 一个类可以有多个构造函数,每个构造函数必须有与其他构造函数不同数目或类型的形参。

    A class can have multiple constructors. Each constructor must differ from the others in the number or types of its parameters.

    youdao

  • 如果两个函数声明的返回类型和形参表完全匹配,则将第二个函数声明视为第一个的重复声明。

    If the return type and parameter list of two functions declarations match exactly, then the second declaration is treated as a redeclaration of the first.

    youdao

  • 如果两个函数声明的返回类型和形参表完全匹配,则将第二个函数声明视为第一个的重复声明。

    If the return type and parameter list of two functions declarations match exactly, then the second declaration is treated as a redeclaration of the first.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定