Notice the difference. The recipe, the sequence of instructions, is actually getting read in, and it's treated just like data.
注意其中的差别,方法,也就是指令序列,其实是需要读的,被当做数据来对待。
And if the test is true, it will change the value of this program counter to point to some other place in the memory, some other point in that sequence of instructions, and you'll keep processing.
如果测试结果为真,它会改变程序计数器的结果去,指向记忆存储器里的其他地方,指令序列里的其他地方,然后你会继续这个过程。
It's a long sequence of instructions, it starts at the beginning, walks through, may jump around a little bit, but eventually comes down at the end. It's okay for the things you're doing for the early problem sets.
这是一长串指令,从开端开始,向前步行,偶尔来回跳一会儿,但是最终会走到结尾,这些足以解决最初级的问题。
What that colon is saying is, I'm about to begin a sequence of instructions that I want to treat as a block.
这个冒号的意思是,下面的一系列的指令,要当做一整块来对待。
Along the way I have some tests, and depending on the value of that test, I may change where I am in that sequence of instructions.
我会按顺序进行一些测试,按照测试的数值,我会改变之指令序列中,我的位置。
Our goal is to take problems and break them down into these computational steps, these sequence of instructions that'll allow us to capture that process.
我们的目标是得到问题,然后将问题分解为这些计算步骤,这些指令集,可以让我们看到这个过程。
It's moving through a sequence of instructions, occasionally changing where we are as we move around.
它经过指令序列,在,我们移动的时候随机改变我们原本所处的位置。
What that means, in a stored-program computer, is that I can provide to the computer a sequence of instructions describing the process I want it to execute.
它的意思就是说,我可以给一个存储程序计算机,提供一系列,描述我希望,能执行的过程的指令。
And that does two things: bug one, it helps catch bugs in your code, and secondly it often converts it into a more efficient sequence of instructions before you actually go off and run it. All right?
这有两点好处:,第一是可以帮助你发现程序中的,第二是把你的代码,在运行之前,转换为更有效率的指令的集合,对不对?
If it is true, execute the sequence of instructions.
如果是的话,执行这一块的指令。
So, evaluate the same sequence of instructions again.
那么再去执行一遍,相同的指令。
It's a sequence of instructions.
那就是程序,就是指令序列。
But literally all I can do at this stage is write what we would call a straight-line program, that is, a program in which we execute in which we execute the sequence of instructions one by one.
但是字面上来说,我们现在学到的,都是所谓的直线程序,也就是,一个接一个的执行,一系列的,指令的程序。
It ran through that sequence of instructions, in particular it bound x to the value three, x and then it took x times x, got the value of x multipied by x, which of course is nine, bound that to the value of x, and then it printed out the value, and now it's sitting here waiting for an input.
程序按照指令的顺序去执行的,首先是把x和3这个值进行了绑定,然后把x乘以,得到了x乘以x的值,当然也就是9了,然后把x和这个值进行了绑定,然后显示出这个值,然后就等待输入。
The process to control it is intriguing and interesting but the heart of the computer is simply this notion that we build our descriptions, our recipes, on a sequence of primitive instructions.
这个控制它的过程很耐人寻味,很有意思,但是计算机的核心仅仅只是,我们在初始指令序列上,建造描述、方法的一个概念罢了。
It's a sequence of specific instructions that I do in order.
这是我按顺序,所定下的具体指令的序列。
应用推荐