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的模式,如果我记得下载编译器到计算机上的话,我们就能运行下这个,然后看看输出的字节。
hi3 And then all of these other white files are just source code files, dot C file.
就是绿色的。,Hi3,is,green。,而其他部分白色文件都是些源代码,都是,c文件。
Just the .h file as we'll see is obviously named different than a .c file.
这些头文件是以,h为后缀的,完全不同于,一个,c文件。
The bits, the zeros and ones that compose the library are actually - in that file called cs50.c but those bits live or-- even that's a white lie.
这些构成该库的比特--0啊1啊,却是在cs50,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语言写的。
So I've got one more piece of bad code on this point and this is buggy five dot c. So as a comment on top bug of this file challenges, what is, in fact, the bug.
所以我在这里得到了一块很烂的代码,这个是buggy5,c,所以作为这个文件顶端的注释,那实际上是那个。
But once you've written a program, "hello world," in a file called hello.c, you Save and Quit.
不过一旦你们写了一个“hello,world“程序“,并且把它保存为hello,c文件后退出。
Make then assumes I'm in a file called make math2.c and goes and finds it.
假设我在一个叫做“make,math2,c“的文件里,然后去找它。
This is a file called Holloway.c. This is-- to be clear, not a program.
这里有一个文件Holloway,c,不是程序-,我们马上就要清除掉它。
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.
我先给我的文件命名为“hello,c“,你们也许会觉得有点烦,因为不是,图形用户界面,这是,命令行界面,这意味着没有窗口,没有图标。
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程序。
There is file now called nonswitch.c among your printouts.
这个有一个叫做nonswitch,c的文件,在你们的打印资料里。
So among your printout from Wednesday, if you have it, you have a file called math1.c. If you don't have this, the programs are short today, so it should be easy enough to follow along visually, but a PDF and the actual source code is available online for these things.
从你们周三打印出来的资料来看,如果你们手上有的话,你们会看到有个叫做的“math1,c“的文件,如果你们没有资料,那些程序还是比较短的,所以你们应该可以很轻松地,来看这些程序,但是那个PDF文件,和实际的源代码都可以到网上找到,相关的资料。
应用推荐