• hello c So if I say hello.c which actually doesn't exist in here hi1 c but hi1.c does, you'll find it alphabetically.

    如果没看到,那就是。

    哈佛公开课 - 计算机科学课程节选

  • So those are in fact the patterns of zeroes and ones, the bytes that would have been outputted had I hello c remembered to download the compiler to this computer and run it on that little hello.c file.

    这些都是0和1的模式,如果我记得下载编译器到计算机上的话,我们就能运行下这个,然后看看输出的字节。

    哈佛公开课 - 计算机科学课程节选

  • hello c Then it's saying name filename to write.

    紧接着又出现,文件名:

    哈佛公开课 - 计算机科学课程节选

  • nano Well, anytime you run a program at the command line, like nano, you've almost always been putting one or more words nano hello c GCC hello c after that program's name; nano hello dot C, GCC hello dot C, and any number of MKDIR for make directory, and then peace at one or similar.

    好的,任何时候在命令行中运行一个程序,就像,你几乎总是用1个或多个单词,在程序名的后面,许多的建立一个新的子目录,然后恢复平静。

    哈佛公开课 - 计算机科学课程节选

  • 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,hellohelloc之间,看到两点相似之处,很显然我们在第二个版本的第二行添加了一些东西。

    哈佛公开课 - 计算机科学课程节选

  • 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语言写的。

    哈佛公开课 - 计算机科学课程节选

  • I am going to run a program called Nano nano hello c and type nano hello.c and I'm gonna type the following very quickly without much explanation because we'll dive into this more next week.

    我要运行一个Nano程序,键入,我快速写下下面的内容,不打算做过多的解释,因为下周我们会深入了解这些。

    哈佛公开课 - 计算机科学课程节选

  • Nano hello c We did Nano for hello.c or whatever I called it, GCC to actually compile into 0s and 1, and then step three is to actually run it.

    首先,第二,GCC,helloc把它编译成01二进制文件,第三,运行。

    哈佛公开课 - 计算机科学课程节选

  • 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.

    也就是说我们现在安全返回,说明一切正常,现在我输入这条命令:,这代表运行helloc这个程序,是由“Apple“或其他人编写的,名为。

    哈佛公开课 - 计算机科学课程节选

  • But once you've written a program, "hello world," in a file called hello.c, you Save and Quit.

    不过一旦你们写了一个“hello,world“程序“,并且把它保存为helloc文件后退出。

    哈佛公开课 - 计算机科学课程节选

  • I'm gonna call my file hello.c. There's a little bit GUI-- of distraction here but this is because this is not a GUI, CLI a graphical user interface, this is a CLI, command-line interface, which just means there are no windows and icons.

    我先给我的文件命名为“helloc“,你们也许会觉得有点烦,因为不是,图形用户界面,这是,命令行界面,这意味着没有窗口,没有图标。

    哈佛公开课 - 计算机科学课程节选

  • - 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.

    那是因为helloc是我所写的东西-,而不是从哪里下载或购买,并通过双击安装的程序,-因为那是我写的程序,在我当前目录下编译的,我们不得不对计算机强调,它是在这个地方的。

    哈佛公开课 - 计算机科学课程节选

  • 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.

    就是寻找一种能在大多数系统上运行的更快捷的方式,哇!,也就是说,你有一个helloc的文件,你想把它变成一个名为hello的程序,那么只需要敲入命令,它就会自动为你生成,一个hello程序。

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定