So it really prevents you from going low, and that's its main function."
VOA: standard.2010.04.15
Because certainly there is a theory that art's main function is to provide succor and solace in this "vail of tears". -Right.
因为确实有一种理论认为艺术的主要,功能是提供帮助与安慰,因为世界纷繁而痛苦,-对的。
I'm saying "here comes my main function; here comes the guts of my program."
我指明“这里是我的主函数;,这里是我的程序内容,“
The main function of all your cells, and all your tissues, and all your organs is to maintain this homeostasis, which allows you to live in a changing environment.
你所有细胞,所有的组织,所有的器官最主要的功能,就是维护这个内稳态,使你能够以不变应万变
Now my main function here is identical.
现在我的main函数是完全相同的。
So here's the main function.
这里是main函数。
So it turns out that, main, yes, is the default function you write, at least in C, when writing a program.
结果是,main函数,是的,这是你写的默认函数,至少是在C语言中,当写程序的时候。
So even though increment is obviously increment declared and defined in this function, it's later; so it's too late for me to use it in main.
很明显,即使在这个函数中,已经声明和定义;,也太迟了,以至于,我在main函数中不能使用它。
Well, what's nice about this program is that there's just one function, main, so we don't need to draw the stack and get things all complicated.
这个程序的优点是,这里只有一个函数main,这样我们就不需要,画出堆,也不用那么复杂。
Well, for a thing called main which itself is a function but a function I wrote, a tool I am writing at the moment not like printf which someone else wrote long ago, I have to say where does main start, where does main end, and I do that by using these curly braces.
至于这个名曰main的函数,由我们自己写的函数,也是一个工具,只不过由我们自己编写,而不是像printf那样已经由前人写好了,我们必须要说明main在哪开始,在哪结束,这样我们就要用到大括号了。
Here's my pro-- here's my function called main.
然后是main函数。
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函数使用,或者我所实现的其它函数,因为它实际上是一个全局变量。
I've got my function main.
我有一个main函数。
In function, main. All right.
在main函数中,好的。
And, again, the rectangle represents your computer's RAM, the bottom represents the part of RAM that we generally call the stack, main conceptually ends up on the bottom of the stack followed foo by its local variables then the function say foo that it calls and on and on and on and up, but there is, in fact, something above all of this and we've seen this picture briefly and that's this thing called the heap.
再次,矩形表示的是计算机内存,底端表示内存的一部分,通常我们把它叫做堆栈,main函数在,堆栈的底端,之后是,它的局部变量,然后是它调用的函数,等等等等,但是那里有,实际上,在这个上面,我们粗略看看这个图画,这个东西叫做堆。
应用推荐