Alright, we are back so we just wrote a programming pseudocode or walk through a programming pseudocode.
继续上课,刚才我们只写了一个伪代码,或者说简单地过了一下。
You just type a few keys, “Happy birthday,” and you send that, and then you’re okay.
只需要写“生日快乐”,然后发出去就可以了。
OK. Now, fortunately we're not going to start with Turing's six primitives, this would be really painful programming, because they're down at the level of, "take this value and write it onto this tape."
好了,现在,幸好我们能开始讲述,图灵的六个基本类型了,这会是非常痛苦的编程,因为它们只在这个阶段上,“拿到这个结果并写在这一卷磁盘上“
But just to be really clear, I've written out exactly which equations you do have to memorize on the front here, so long as you know those, the rest you can just look up.
但是让大家清楚,我已经,把大家需要记住的公式都写在前面了,只要你知道了这些,其它的就只需要查了。
And, I mean, I wouldn't just give it to him because he wrote a sonnet.
我不会只把周期表和十四行诗对应,因为他写的是十四行诗。
All you have to include in your own programs is the so-called header file.
你们自己写的程序只需要包括,头文件就可以了。
I just give you one of those, right, because you could write down the other one because you know the other complimentary sequence from base pairing?
我只写了一条链的序列,因为你们能够写出另一条,因为你们根据碱基配对,就能推测出互补链的序列
But after that it'll be writing about whatever you want and sometimes people feel a little out to sea not knowing exactly what we're expecting, so those instructions that we send out will be helpful.
之后就不用了,只需要写想法就可以,有时候人们会有点不知所措,不清楚我们要的是什么,所以我们给出的说明是有帮助的
It is in fact a very, very difficult and derivative act of the mind to try to forget that I am looking at a sign that says 'exit' and, in fact, just looking at what is there without knowing what it is.
事实上,试图忘记那个写着存在的标志,和只知道它存在而不知道它是什么,是非常难的事情。
And I won't write it all out, I'll just write it's got Harvard as one in it, Harvard and then it's got Yale, and then it's got Brown.
当做是在内存中某处以对象,的形式存在而处理的,我不会把它全写出来,我只写ivys包括了。
So here is the simplest program which is perhaps an ironic statement that you can implement with this language called C. So it takes a few lines of code to actually get something up and running and as you'll recall last Friday, I didn't even get this up and running because part of the process of writing a program is to one, write it.
让我们回到这个最简单的程序,你们也许觉得啼笑皆非,这么简单的例子,用C语言写出来就可以了嘛,的确只需要几行代码,就可以让这个程序跑起来,就像上周五的那样,我之所以没让它跑起来,因为编程步骤之一,就是“写“
应用推荐