So I am going to on the fly write a very simple little main program that just illustrates some of the syntax that we can then visualize more interesting.
我很快的写了一个很简单地小程序,来说明一些语法,我们使它变得更有趣些。
Let's modernize this program in main, boy, this is a lot easier it turns out.
让我们把这个程序现代化,小子们,结果这个容易很多。
I'm saying "here comes my main function; here comes the guts of my program."
我指明“这里是我的主函数;,这里是我的程序内容,“
So here's a program set up in the same way, main looks the same.
这里有个同样的习题,大体看起来是一样的。
So it turns out that, main, yes, is the default function you write, at least in C, when writing a program.
结果是,main函数,是的,这是你写的默认函数,至少是在C语言中,当写程序的时候。
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,这样我们就不需要,画出堆,也不用那么复杂。
So I'm saving this file, notice there is a few keywords that we'll come back to next week like main which is kind of the main part of my program.
保存此文件,注意这有几个关键字,我们在下周介绍,比如代表程序主体部分的“main“
应用推荐