• 回答数

    7

  • 浏览数

    81

Johnhockson
首页 > 英语培训 > 变量参数英语

7个回答 默认排序
  • 默认排序
  • 按时间排序

考小拉考小花

已采纳

在程序世界中,我们经常会用到两个词条来标识变量,即Parameter和Argument。那么,现在的问题是,这两者有什么区别呢?通常我们认为,parameter是参数,而argument是参数的值。对应的中文术语是:parameter = 形参;argument = 实参。What is the difference between an argument and a parameter?>> While defining method, variables passed in the method are called parameters.>> While using those methods, values passed to those variables are called arguments. 当我们定义一个方法的时候,传入变量的名字就是Parameter。我们来看一个例子:1234function GetSquareArea(sideLength) { return sideLength*sideLength; } 这里,sideLength就是Parameter。当我们在调用这个方法的时候,值会传给变量,这个变量就叫Argument。例如:12var intSideLength = 4;var intSquareArea = GetSquareArea(intSideLength);程序运行的时候,intSideLength会被赋值为4,那么对于方法GetSquareArea的调用,intSideLength就是Argument。

变量参数英语

99 评论(12)

左左颜色

英语parameter和argument作为参数的意思区别:

1、释义不同。parameter是指决定因素;规范;范围,argument是指争论;争吵;争辩;辩论;论据;理由;论点。2、 参数指向不同。parameter是指函数定义中参数,而argument指的是函数调用时的实际参数。3、对应中文术语不同。parameter=形参(formal parameter), argument=实参(actual parameter)。4、用法不同。在不很严格的情况下,现在二者可以混用,一般用argument,而parameter则比较少用。5、在方法选择上不同。例如:While defining method, variables passed in the method are called parameters.当定义方法时,传递到方法中的变量称为参数。While using those methods, values passed to those variables are called arguments.当调用方法时,传给变量的值称为引数。(有时argument被翻译为“引数“)

214 评论(9)

YXRS游戏人生

parameter和argument是计算机英语中常见的词汇,这两者的区别如下:parameter是形参,体现在函数定义中,当出现在整个函数内都是可以使用的, 要是离开该函数则不能使用argument是实参,体现在主调函数中,当进入被调函数后,实参变量也不能使用2、parameter只有在被调用时才分配内存单元,在调用结束时,即刻释放所分配的内存单元。函数调用结束返回主调用函数后则不能再使用该形参变量。因此,形参只在函数内部有效。argument可以是变量、常量、函数、表达式等,无论实参是何种类型的量,在进行函数调用 时,它们都必须有确定的值,以便把这些值传送给形参。因此应预先用赋值,输入等办法使参数 获得确定值。扩展资料:当parameter和argument不是指针类型时,在该函数运行时,形参和实参是不同的变量,他们在内存中位于不同的位置,形参将实参的内容复制一份,在该函数运行结束的时候形参被释放,而实参内容不会改变。举例:1. 比如你定义一个函数void add(int a, int b),这里的a和b就是parameter。 2. 当你进行函数调用的时候,add(1, 2),这里的1和2就是argument。

141 评论(14)

吃货称霸999

“参数”的英文缩写是“parm”。

1.音标:[ prɑ:m ]

2.具体含义:参数

3.双语例句:

It involves the same parameter as that involved in the enhancement factor for coagulation of two equally charged particles.

它包含了与两个相等带电粒子凝聚增强因子中所包含的同样参数。It is the parameter of distribution.

这就是分布参数。Land economic coefficient is an important corrective coefficient in farmland classification.

土地经济系数是农用地分等中重要的修正参数。。 This convenient interface provides methods to create the different searchparameters and obtain the details from the results.

这个便捷的接口提供了很多方法创建不同的搜索参数和获取结果中的信息。Each input parameter should have the variable name and its value.

各输入参数应该有自己的变量名和值。

356 评论(13)

小群angela

什么参数的缩写,参数的英文是parameter

290 评论(9)

心如蝶舞

搜一下:参数变量这两者有什么区别?parameter,variable

224 评论(14)

无敌的小饭桶

参数,也叫参变量,是一个变量。我们在研究当前问题的时候,关心某几个变量的变化以及它们之间的相互关系,其中有一个或一些叫自变量,另一个或另一些叫因变量。如果我们引入一个或一些另外的变量来描述自变量与因变量的变化,引入的变量本来并不是当前问题必须研究的变量,我们把这样的变量叫做参变量或参数。英文名:Parameter。

115 评论(10)

相关问答