Notice in this program I have not checked whether or not the user actually provided input.
就拿这个程序说事吧,我们根本没有检查,用户到底有没有输入。
I did this program in high school called mock trial
我在高中做过一些模拟审判,
So, in this program when we call this version of swap 1 and 2 do not end up here, right?
所以,在这个程序中,当我们调用这个swap版本1,和版本2,不是在这里结束,对不?
Because we obviously can't, in any course, or even any set of courses, tell you everything you'll ever want to know in life we've seeded some things in this program that will be unfamiliar, so during the time you're studying the program, get online, look it up, figure out what they do.
因为在任何一门课上或者几门课上,我们都不可能告诉你,所有你想知道的事情,我们在这个程序中,加上了一些你们不熟悉的东西,所以在你们研究这个程序的时候,你们可以上网找资料,弄懂它是干什么的。
So I heard of this program that's in Hartford, the Hartford Theological Seminary, It's traditionally a Christian seminary.
因此当我听说哈特福特有个项目时,哈特福特神学院,是的,是传统的基督教神学院。
The strategy then often is to figure out how, what sort of program can solve these problems and then we go on to ask, "How could this program be instantiated in the physical brain?"
心理学家们通常要先弄清,什么样的程序可以解决这些问题,然后我们会接着问到,"这个程序在我们的生理大脑中,是如何进行编译的"
Three years from now, that is after the next president has had time to enact this program and the program has had some time to begin taking effect will the number of illegal immigrants in the United States be higher, lower or about the same? Ken Judd.
年后,这期间,下届总统有可能制定相关法案,而该法案刚好也已经生效,美国境内的非法移民,是增多,减少还是持平?,肯·贾德你先来。
In this brief presentation, I want to tell you about Star Festival. Star Festival is a multi-lierd program which we created at MIT, myself and a large team of people who work on different parts of the program.
在这个演示中,我会告诉你们,关于“七夕“项目的一些东西,它是个合作项目,是由我们这个大团队在麻省理工学院创建的,团队人分管项目的不同部分。
At the top, I've got some CS50 Library going on, argv standard I/O library; I don't bother mentioning argc or argv because I'm not going to use them in this program.
在顶端,我使用了CS50函数库,标准输入输出库,我没有提到argc或者,因为我不会在这个程序中使用它们。
So when you're writing a program in this language and many others, if you wanna make a comment to yourself or for other people who are reading this with their TF or fellow colleagues, you use what are called comments.
当你用这样那样的语言写程序时,为了便于自己或他人,阅读我们写的代码,我们必须得做一些注解,这就是所谓的注释。
So you're telling me about this program: They're the only institution in America, there has an actual credited program which produces Muslim chaplains.
刚才你在跟我谈到这个项目:,他们是美国唯一的一所,培养穆斯林教士的有学分的项目。
> Yeah, so when green flag clicked, and that's kind of the very explicit way of saying when you start this program by clicking in the green flag, here is what's gonna get executed first.
>,是的,“点击绿旗“,就是用这种直白的方式告诉你,你需要点击这个绿旗才能启动整个程序,这是程序生效的入口。
Second thing we've got to worry about is, what's a basic step? All right, if I bury a whole lot of computation inside of something, I can say, wow, this program, you know, runs in one step. Unfortunately, that one step calls the Oracle at Delphi and gets an answer back. Maybe not quite what you want.
我们需要担心的第二件事情就是,什么该作为一个基本的步骤呢?,如果我把一大堆的计算过程放到里面,我可以说,噢,这个程序你知道的,一步就完成了,不幸的是,这一步可能要靠预言家才能得到答案,这可能跟你想要的结果不太相同吧。
bug Now, this was not the bug in this program because I did, in fact, use the equality operator and so it feels like if I type the word foo both times I should, in fact, get back you type the same thing.
现在,在这个程序中这个不是,因为,实际上,我使用了等于号,如果我输入单词foo两次,我返回给你“输入了相同的东西“
So based on initial impressions, what does this program do when you run in it? Yeah?
所以根据初步的印象,如果你们运行这个程序,它会做什么?,啊?
And that meant, in English, that this was enough to write any program.
简而言之,它的意思就是足以编写任何程序。
应用推荐