hyacinth46
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。
祖国的砖。
parameter[pE5rAmitE]n.参数, 参量, <口>起限定作用的因素parameterpa.ram.e.terAHD:[p…-r²m“¹-t…r] D.J.[p*6r#mit*]K.K.[p*6r#m!t+]n.(名词)Mathematics 【数学】 A constant in an equation that varies in other equations of the same general form, especially such a constant in the equation of a curve or surface that can be varied to represent a family of curves or surfaces.参数,参量:在相同一般类型的等式中取值变化的等式中的常数或常量,尤其是曲线方程和平面方程中能代表一类曲线或平面的常量One of a set of independent variables that express the coordinates of a point.变量,参数:一组代表与之对应的点的独立变量之一One of a set of measurable factors, such as temperature and pressure, that define a system and determine its behavior and are varied in an experiment.要素,测量元素之一:一组可测量的确定某一系统并决定该系统的状况且在实验中是变化的因素之一,例如温度和压力Usage Problem A factor that restricts what is possible or what results:【用法疑难】 限制因素:限定可能性和结果的因素:“all the parameters of shelter—where people will live, what mode of housing they will choose, and how they will pay for it”(New York)“住宿的所有限制因素——人们住在哪里、他们将选择什么样的住房式样以及他们如何付房钱”(纽约)A factor that determines a range of variations; a boundary:决定变数范围的要素,范围,界限:决定变化范围的因素;限度:an experimental school that keeps expanding the parameters of its curriculum.一所不断扩展课程范围的实验学校Statistics A quantity, such as a mean, that is calculated from data and describes a population.【统计学】 母数:一种如平均数等从数据中计算出来的用来描述总体的数值Usage Problem A distinguishing characteristic or feature.【用法疑难】 特色,特征:区别于其它事物的特点或性质New Latin parametrum [a line through the focus and parallel to the directrix of a conic] 现代拉丁语 parametrum [通过焦点并与圆锥曲线的准轴线平行的直线] Greek para- [beside] * see para- 1希腊语 para- [在旁边] *参见 para-1Greek metron [measure] * see -meter 希腊语 metron [测量] *参见 -meterpar”amet“ricAHD:[p²r”…-mµt“r¹k] 或 par”a.met“ri.cal (形容词)par”amet“ricallyadv.(副词)In recent years parameter has become the archetype for the borrowing of scientific terms into general usage and as such has occasioned a good deal of skeptical comment. Some of its new uses can be justified as useful extensions of the technical senses of the word. For example, the provisions of a zoning ordinance that limit the height or density of new construction can be reasonably likened to mathematical parameters that establish the limits of other variables. Therefore one can properly say The zoning commission announced new planning parameters for the historic Lamping district of the city. But other uses suggest that the writer has not understood the technical sense and has chosen it primarily as a way of injecting an aura of scientific precision into what would otherwise be a pedestrian communication. Thus there is no semantic justification for using parameter as a general substitute for characteristic, as in The Judeo-Christian ethic is one of the important parameters of Western culture, an example found unacceptable by 80 percent of the Usage Panel. · Some of the difficulties with nontechnical use of parameter appear to arise from its resemblance to the word perimeter, with which it shares the sense “limit,” though the two words differ in their precise meaning. This confusion doubtless explains the use of parameter in a sentence such as U.S. forces report that the parameters of the mine area in the Gulf are fairly well established, where the word perimeter would have expressed the intended sense more exactly. This example of a use of parameter was unacceptable to 61 percent of the Usage Panel. 近些年来,parameter 已成为一个从科技术语借用到普通用法的原形, 同时也引起了大量的怀疑批评。它的某些新用法可被看作是该词科技含义的有益扩展。例如,某一区域性法规中关于新建筑高度或密度的条文能被合理地与制定其它变量限度的数学参量进行比较。因而,人们当然可以说地区委员会公布了历史上该城有名的灯区新计划方案 。 但其它的一些用法说明说话人还没有理解它的科技含义,并且选用了这个词主要作为给将是普通交流的东西注入一些精确的科学气息的途径。因此,用parameter 作为 characteristic 的一般等价词毫无语义上的合理性, 如在犹太教与基督教的道德规范是西方文化中重要的限制因素 , 是80%的用法小组成员不接受的例子。Parameter 的非科技运用中的一些难点是由于它与 perimeter 都有“限制”的含义造成的, 尽管两个词的确切含义是不相同的。这种混淆无疑解释了parameter 在例如 美军报告说,海湾地雷区的环形防线设置得相当不错 的句子中的运用, 这里perimeter 可能会更确切地表达这种引申含义。 61%的用法小组成员不接受这个运用parameter 的例子 parameter[pE5rAmItE(r)]n.参数parameter来自现代拉丁语parametrum<希腊语para-在旁+metron尺,测度
优质英语培训问答知识库