So here's a program set up in the same way, main looks the same.
这里有个同样的习题,大体看起来是一样的。
It doesn't work that way for a variety of reasons, but the main reason is that you want some decisions to be made at each space between two cells.
这出于很多原因,但主要的原因是,在每个细胞间隙,都需要决定信息是否继续传递
More fundamentally, I want to get back to what I think of as the main theme of 6.00, which is taking a problem and finding some way to formulate the problem so that we can use computing to help us get an answer.
花一些时间来讲,更重要的是我想,回到我认为的6。00的重点,即处理问题并公式化问题,从而使我们能够靠电脑得出答案。
So pictorially, it's as though there's now some other part of the blackboard here, maybe way up here where I can put anything I want that's accessible to main, that's accessible to swap, that's accessible to increment or any other function I might implement because it is, in fact, global.
绘画般地,它是在这里黑板上的其他部分,可能在这里的上面,我在哪里可以放置这些东西,使它们可以被main函数使用,可以被swap函数使用,可以被increment函数使用,或者我所实现的其它函数,因为它实际上是一个全局变量。
应用推荐