So it turns out a really nice shortcut on most systems, oops, is to say if you have a file called hello.c and you wanna turn it into a program called hello, well, make hello just write in the command makeHello and it will do all of that for you automatically and hand you a program called hello.
就是寻找一种能在大多数系统上运行的更快捷的方式,哇!,也就是说,你有一个hello,c的文件,你想把它变成一个名为hello的程序,那么只需要敲入命令,它就会自动为你生成,一个hello程序。
So if you haven't already, just glance at the person next to you, or say hello if you don't know them.
如果你还没有做好,那就看看你旁边的人,如果你不认识他们就跟他们打个招呼。
Alright, so let's now start doing more interesting things hello than just saying hello ad nauseam to ourselves.
也行,好吧,那我们接着上课,讲些更有趣的东西,不再一遍又一遍重复令人作呕的。
GCC hello c So you see two similarities between the first version, GCC hello.c, and the second version but obviously I've just added which part for that second line.
你将会在第一个版本,和第二个版本GCC,-o,hello,hello,c之间,看到两点相似之处,很显然我们在第二个版本的第二行添加了一些东西。
So I'm gonna go ahead and save this file, hello c it's hello.c, dot C hints at the fact that this program I just whipped up is written in a language called C.
所以我打算继续,保存,并命名为,“,c“表明这个程序,是使用C语言写的。
- And that's because hello.c is something I just wrote -- it's not something I downloaded or bought and installed via double-clicking or anything like that -- because I wrote it, compiled it in my current directory, I have to be ever-so emphatic to the computer that it's actually right here.
那是因为hello,c是我所写的东西-,而不是从哪里下载或购买,并通过双击安装的程序,-因为那是我写的程序,在我当前目录下编译的,我们不得不对计算机强调,它是在这个地方的。
So with the fact that I'm now just back at my prompt is a good thing so now GCC hello c if I type this command GCC hello.c, this is gonna run this program that Apple wrote in this case GCC or someone else wrote called GCC.
也就是说我们现在安全返回,说明一切正常,现在我输入这条命令:,这代表运行hello,c这个程序,是由“Apple“或其他人编写的,名为。
应用推荐