年少无知23
在程序世界中,我们经常会用到两个词条来标识变量,即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。
终于改了名字
问题一:道理的英语翻译 道理用英语怎么说 principle truth reason sense argument 亲:祝你学习进步,每天都开心V_V!望采纳,thx! 问题二:'说的很有道理"英文怎么翻啊 你说的有道理。: You've got a point there. 她说得很有道理。: She talks a lot of good sense. 你说的话没有道理.: What you say makes no sense. 他争辩得很有道理。: He argues soundly. 依我看,他说的话是有道理的。: From where I stand, what he said is reasonable. 这倒很有道理。: That makes a lot of sense. 有道理: 1. with reason 2.that figures 3.have reason 4.it figures 5.have a point Examples: 1. 你说得有道理。 You have a point there. 2. 你说的有道理。 You've got a point there. 3. 这个评估很有道理,可能相当正确。 It was a shrewd asses *** ent and probably pretty close to the truth. 4. 我认为这是没有道理的。 I think that's not reasonable. 5. 这没有道理。 It makes no sense. 道理: [ dào li ] 1. justification 2. principle 3. sense 4. reason 5. argument 6. basis 7. order 8. theory Examples: 1. 这没有道理。 It makes no sense. 2. 我认为这是没有道理的。 I think that's not reasonable. 3. 按道理他应该到车站去接你。 He should have meet you at the station on principle. 4. 你看这有道理吗? Do you think it makes sense? 5. 这倒很有道理。 That makes a lot of sense. 6. 这个计划道理上行得通, 但不现实。 The plan is feasible in reason but impractical. 7. 他从道理上解释了这个老人的行为。 He explained the behavior of the old man within reason. 8. 你说的话没有道理. What you say makes no sense. 问题三:明白了一个道理,用英语怎么说 明白了一个道理,的英文翻译_百度翻译 明白了一个道理, Understand a truth, truth_百度翻译 truth 英[tru:θ] 美[truθ] n. 真理; 真相,事实; 忠实,忠诚; 现实,现实性; [例句]Is it possible to separate truth from fiction? 有可能把事实与虚构分开吗? [其他] 复数:truths 问题四:'说的很有道理"英文怎么翻 可以说good point或者that makes sense。
小坦克秋
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。