早教吧作业答案频道 -->英语-->
算法导论算法导论英文版第二章2.1节关于伪代码的第八条我看的不是很懂敢问那位大侠翻译并解释一下以下是原文“Parametersarepassedtoaprocedurebyvalue:thecalledprocedurereceivesitsowncopy
题目详情
算法导论
算法导论 英文版 第二章 2.1节关于伪代码的第八条 我看的不是很懂 敢问那位大侠翻译并解释一下 以下是原文
“Parameters are passed to a procedure by value:the called procedure receives its own copy of the parameters,and if it assigns a value to a parameter,the change is not seen by the calling procedure.When objects are passed,the pointer to the data representing the object is copied,but the object's fields are not.For example,if x is a parameter of a called procedure,the assignment x ← y within the called procedure is not visible to the calling procedure.The assignment f [x] ← 3,however,is visible.”
算法导论 英文版 第二章 2.1节关于伪代码的第八条 我看的不是很懂 敢问那位大侠翻译并解释一下 以下是原文
“Parameters are passed to a procedure by value:the called procedure receives its own copy of the parameters,and if it assigns a value to a parameter,the change is not seen by the calling procedure.When objects are passed,the pointer to the data representing the object is copied,but the object's fields are not.For example,if x is a parameter of a called procedure,the assignment x ← y within the called procedure is not visible to the calling procedure.The assignment f [x] ← 3,however,is visible.”
▼优质解答
答案和解析
在一个过程中,参数通过值来传递:调用过程收到它自己其中的参数,如果参数被赋上一个值,这个变化对调用过程是不可见的.当对象被传递的时候,数据的指针代表了对象被复制,但是对象域却没有.例如,如果x是一个调用过程的...
看了算法导论算法导论英文版第二章2...的网友还看了以下:
算术编码的解码问题假设我源码是ABADCAEABE那么我通过算术编码得到的是0.18442815, 2020-05-17 …
请帮忙翻译英语亲爱的先生、女士:我的姓名是JACK,我的酒店预定代码是123456,我将于5月1日 2020-06-22 …
走进阅读聪明屋。我爱“勇敢”小时候,我爱听人家说我勇敢。4岁那年,有一次我跌倒了,正想哭,妈妈忙说 2020-06-27 …
为这篇文章列提纲在我的记忆中曾经发生过一件令人啼笑皆非的事,那是我第一次吃辣椒,就是这一件小事,让 2020-06-27 …
雅思怎么过啊我刚考过雅思,第一次,听力6.5阅读7写作5.5口语5,要单科过6才行~还要考第二次, 2020-07-12 …
谁偷走了我的勇敢三年级作文300字我一直觉的自己是一个勇敢的小女孩儿,生病打针从来都不哭,比我妈妈 2020-07-15 …
问题描述:5位跳水高手参加10米高台跳水决赛,有好事者让5人据实力预测比赛结果.A选手说:B第二,我 2020-10-30 …
帮忙一下.一.下面的数字1各表示什么意思?1个苹果()第1名()1号运动员().四.有人说我们已经进 2020-12-10 …
一.下面的数字1各表示什么意思?1个苹果()第1名()1号运动员().四.有人说我们已经进入我“数码 2020-12-10 …
怎么用微波炉加热鸡蛋?我第一次加热鸡蛋带壳的,爆炸了.第二次,我把壳拨了,没有爆炸.但是,我用筷子一 2020-12-12 …