OK. So to do this, we need a little more abstract way of talking about efficiency, and so, the question is, how do we think about efficiency? Typically there's two things we want to measure.
好,为了达到这个目的,我们需要用一种有点,抽象的方式去讨论效率,这衍生出来,一个问题,我们该怎么去认识效率?,主要来说我们有两个要量化的东西。
But then the Parliament were made really to run, but the Kings and Queens ruled.
但是,议会成立的目的是为了管理这个国家,而国王和女王是统治这个国家。
And to do that, in this it says, if I have a value, I want to keep it around, to do that, I can do things like this.
为了达到这个目的,在这里面是这么说的,如果我有个值,想把它保存起来,我可以这么做。
It may mean something different and this is sort of just stupid re-use of syntax although frankly it wouldn't really be much fun to have yet a symbol so they went with the same symbol which is pretty reasonable in the context *a of a function prototype this just means *a expect A to be the address of an int and expect B to be the address of an int.
这里的意思有点不同,这是为了重使用的目的,虽然这个符号没有什么意义,所以在函数原型中,他们就使用了相同的符号,这只是表示,期望,是一个int型的地址,期望b是一个int型的地址。
To do that, we need to describe: not only, what are the primitives, but how do we capture things legally in that language, and interact with the computer?
为了达到这个目的,我们需要描述:,包括程序基本的东西,以及怎么在这种语言中,做我们想做的事情并和计算机交互?
And to do this, I'm going to use some code that I've already typed in.
为了达到这个目的,我会去使用一些,我已经写好的代码。
And for that, we're going to have statements.
为了达到这个目的,我们就得使用声明了。
I'm putting them in there to make a point.
我把注释放在这里是为了这个目的。
That is basically saying, given some collection of data, I want to have again a looping mechanism, where now my process is, walk through this, the collection one element at a time. And for that, we have a particular construct, called a FOR loop.
现在我的过程就是,通过一个个访问这个集合中,的元素的方式,来遍历这个集合,为了达到这个目的,我们有一个特定的结构,成为FOR循环。
应用推荐