I'm thinking about a problem, I'm going to show you an example in a second, first thing I'm going to do is say, what is the thing that's going to change every time I run through the same set of code?
我要解决一个问题,我马上会让大家看一个例子,第一件我要做的事情就是,弄明白每次运行同样的指令集时,每次都会改变的东西是什么?
Everytime I've gone to go see a show, except for maybe once or twice,
大概只有一两次例外,每次我去看一场演出时,
I find that every time we do our meditation on Thursday, I'm always running to make it, or something happened before I get there, I'm like "Oh my God, meditation!"
我发现每次我们周四,要冥想时,我总是匆匆赶过去,或者是到达之前发生一点事故,我就好像“天哪,要冥想!“
And you do your work product and you bring it to sections and hand it in to your TA in section each time.
请完成并带好你们的作业,并在每次上课时交给你们的助教
Every time I drive the steering wheel of my car, I rub off some items. But that's OK, it's still the very same physical object.
每次我使用方向盘时,都会摩擦掉一些微粒,但没关系,它还是原来那个物体。
So before long, we'll see, especially for problems that we can't allocate an int every time we want to store something, because what if we want to store 140,000 English words.
所以不久后,我们将看到,特别是对于,我们不能为int分配内存,每次我们想要,存储一些东西时,因为当我们想要,存储140,000个英语单词时。
Every time I go near the podium, I find I'm drawn to it."
每次我走到讲台附近时,都会感到被它吸引"
And in the group of poems that were assigned for a section last week, you saw Milton alluding to just this passage, although you might not have known it, in Revelation 14 whenever he would speak of the music of the spheres.
上周规定阅读的那些诗歌中,你们看到弥尔顿暗指了这一段,虽然你们可能不知道,在《启示录》第14章,每次他讲到天体音乐时。
So it's very difficult, but what I come down to is that you just have to place your energy on your breath, and every time you notice your awareness drifts to somewhere else, you have to recognize this drift and let it go.
因此这很难,但我总结的方法是,只需要把能量集中到呼吸上,每次注意力不集中,飘到别处时,要意识到意识的涣散,并放手不管。
I give it such a hard time each time I teach this class, that I'm often tempted to just drop it from the discussion altogether.
每次授课时我都对此严加斥责,而且经常想要直接放弃讨论。
Every time I try to picture myself being dead, I smuggle myself back in, conscious and existing as a person, hence, not dead as a person.
每次我想象自己的死亡时,就会将自己带入,有意识作为人而存在的状态,所以也就不再处于死亡了。
At any rate, I don't know for certainty that I'm a harder grader, but I believe that it's the case based on reactions I get when I give the speech that I'm about to give.
不管怎么,虽然不是特确定我评分严格,但相信应该就是这样,根据我每次说这些话时得到的反应来说。
So, certainly the CS50 Library designed to be dynamic and, in fact, any time you call get string, we are, in fact, ; allocating a chunk of RAM but it's not coming from the stack; it's actually coming from this portion of memory called the heap.
所以,Cs50库是动态设计的,实际上,每次你调用GetSting时,我们分配一块内存,但它不是来自栈;,而是来自于叫做堆的,内存的一部分。
应用推荐