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的模式,如果我记得下载编译器到计算机上的话,我们就能运行下这个,然后看看输出的字节。
It turns out that in a lot of languages, C included, you the programmer knowing a bit about how the computer works and the language works, can exercise more fine-grained control.
结果在包括C语言的很多语言当中,你作为一个程序员懂得了一些计算机的工作方式,和语言的处理方式,可以更精确地控制运用它。
Pseudocode is kind of an English-like syntax that's just a useful way of expressing yourself fairly succinctly, fairly computer-like but without having to worry about stupid details like whether it's Java or C or whatever.
伪码是一种类似英语的语法,可以简洁地,表达自己的意思,它与电脑类似,但是你不用担心那些愚蠢的细节,比如Java,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是我所写的东西-,而不是从哪里下载或购买,并通过双击安装的程序,-因为那是我写的程序,在我当前目录下编译的,我们不得不对计算机强调,它是在这个地方的。
But one of the teaching fellas also passed long to us recently, a little real world example of what happens when you're not mindful of various data types and you're not mindful of the imprecision that's inherent in representing data in a computer, at least using a language like C and low level primitives like floats and even doubles.
最近有个助教告诉我们,一个现实世界中的例子,当你不注意各种各样的数据类型,也不注意在计算机中表示数据时,其内在的不精确性,至少在用像C语言,和float甚至double型数据时,那将会发生什么?
应用推荐