So it's generally called distribution code and whereas for the previous problems that you pretty much started from scratch, blank files you opened up nano and there was nothing there unless you put it there.
它一般被称作分布码,然而,对于之前几乎要从头做起的问题,在空白文件中什么都没有,除非你在里面写入些东西。
and we had to start from scratch together. We did all of our research in the library together.
我们必须从零开始。我们一起在图书馆做研究。
Thus far and in Scratch will pretty much focus on the idea of correctness: Does your code work as we asked it to and as you intended it to?
至此,人们大都是把注意力集中于正确性,观点上:你的代码是不是根据你的意愿,并按照你的要求来执行呢?
Take the fattest marking pen you have, scratch that out and replace it with atomic hydrogen.
用你最粗的笔把它划掉,再用氢原子代替它。
They might be,for example,in an accident, and come close to being killed,but walk away without a scratch.
比如说在事故中幸存,差点送命,但结果毫发无伤。
Because you won't want to do everything from scratch yourself, you want to be able to look at what is being created by somebody else and understand what is inside of there, whether it works correctly and how you can build on it This is one of the few places where plagiarism is an OK thing.
因为你们不会想无论做什么事情,都由你们自己亲自上阵,你们希望有能力读懂,别人创造的语言,并了解其中的内涵,运转的正确性和如何在其基础之上继续发展,这是为数不多的,合理的作弊行为之一。
Next week, social thought and social behavior, mysteries; basically, a series of topics that don't fit anywhere in the course and really make psychologists scratch their heads.
下节课我们将会讲社会思想,社会行为,神话;,基本上这一连串的话题,在本课程中属于杂七杂八的,而且让心理学家百思不得其解的。
He created just about the biggest private equity firm from scratch in 1985 and I guess they just went public and they have a huge market cap.
他于1985年白手起家,创建了最大的私募股权公司,后来公司上市,市值相当可观
So, they developed this bifurcated tool, which would be appl--you'd put the stuff on the surface of the tool and then you'd scratch the skin in a certain way so that you could produce sort of a reproducible introduction of the vaccine into the skin.
所以他们发明了一种分为两叉的工具,把疫苗抹在这种工具表面上,然后以某种方式在皮肤上刮,这样就能将疫苗,重复不断地引入到皮下
Scratch And after just a few words on Scratch which we'll look at in more detail on Friday will you actually feel that you know what, this is actually very intuitive.
现在先粗略介绍一下,周五我们会更详细地讲,你会感觉到这其实是很直观的。
Things very quickly get ugly and you might even already be feeling this tension in Scratch if you're dragging and dropping and moving things around.
是不是很丑呢,如果东丢一点,西落一点,你很快就会不爽了。
scratch Scratch is a program that you can download for free cs50 net and you will see in problem set 0 0 which will be posted on CS50.nettonight under problem sets in both standard and hacker editions, can you do the--can you--it will walk you through the process of getting this software.
你可以免费下载,今天晚上我会在0,放上习套题,这个习题集有两个版本,习题集可以指导你,如何下载这个软件。
We've seen this branching construct in Scratch, we've seen it a moment ago on the slide, and see, we just need else if to use not an else, not just an if but an else if.
我们看到了这个Scratch的分支结构,我们看到刚才在幻灯片中,了解到,我们不需要,用一个else,也不只是用一个if,而是用一个。
And notice, unlike Scratch where some of you might have realized it starts to get a little ugly, you have an "if else" and then you have another here and another one and things start to move and move and move like this, it gets very messy.
请注意,不像Scratch,在那里,你们其中某些人可能认识到它变得有点丑,你有一个“if,else“然后这里又另一个,那里又有一个,代码就像这样开始跳转,跳转再跳转,它开始变得有点凌乱了。
itself and introduce Scratch, the programming language in an environment we looked at, but also some of the fundamentals that we'll lace throughout the course.
这周五我们就开始讲计算机科学,并在我们设定的环境下,介绍编程语言Scratch的用法,而且我们也会在课程中,捎带讲一些基础知识。
So variables you were introduced to in scratch, and there was this idea of global and local variables, but scratch called them something a little different.
在scratch中所介绍的变量,这里有一个全局变量和局部变量概念,但是scratch中有不同的叫法。
And you will see over time as you've seen with Scratch that there's going to be different ways to implement these various goals.
久而久之你们也将看到像你们在Scratch上看到的一样,它们有不同的方式,来实施不同的目的。
Well, what are some of the other constructs we're gonna have access to starting with scratch and see?
当我们开始用Scratch编程的时候,其他的一些指令是什么意思呢?
And you might have started doing these kinds of things in Scratch as your programs got more sophisticated.
并且你可能已经开始在Scratch中开始做这种事情了,随着你们的程序变得越复杂。
So first thing we should do is scratch our heads and see what's going on here. Alright, let's look at it. What's happening here?
所以我们要做的第一件事,就是抓抓脑袋看看发生了什么,好了,让我们来看看,这儿发生了什么呢?
repeat Scratch essentially had the same ideas, but they were call repeat and forever and a few other options.
本质上,Scratch有相同的思想,但是他们叫做,和forever和一些其它的选择。
Another one might be "wait one second" which is another building block or puzzle piece and scratch.
另一条语句可能是“wait,one,second“,这条语句组成块或者片。
And in Scratch did you probably see the key word "and" on one of the blocks.
在Scratch中,你们大概看到那个关键字,“and“在其中一个程序块中。
Here, print F, recalls a statement and just like in scratch, statements were these one-liners.
这里,printf,召回了一个语句,像在scratch中,语句是这些单行方式的。
So with problems at zero, ; which will be posted in two forms; PDF PDF for standard and PDF for hacker on cs50.net tonight, you will have the choice of implementing pretty much any scratch projects you can think of, and which subject to very few constraints.
对于问题集,我们提供了;,标准PDF以及可编程,今晚它们都会被放在CS50,net上,你可以选择任何,你想到的项目,范围不限。
And odds are if a week hence, two weeks hence just for fun you decide to reimplement your Scratch project -- or some tiny piece of it, it wouldn't be surprising -- or shouldn't be -- if you end of implementing the same game or animation or whatever using a completely different set of puzzle pieces Same deal we'd see here.
可能一周之后,两周之后,为了好玩,你决定重新实现你的Scrtch工程,或者其中一小部分,它将不会是令人惊讶的-,本来也不应该是--如果你运行相同的游戏,或者是动画,亦或是用完全不同的设置,来运行拼图游戏,我们将看到相同的处理。
And it's also much more similarly structured to Scratch.
而且这个对于Scratch来说是也是更有结构性的。
But what looks like this orange block as of now in Scratch, add orange to your so called inventory, well, it's gonna take at least two lines of code in C to actually create the inventory array with this first line and then put something like the word orange inside of it.
就好比Scratch里面橘色的这一块,把“桔子“加到所谓的“清单“里面去,在C语言中至少需要两行代码来实现,第一行代码创建一个货单数组,第二行就需要把“桔子“放进去。
应用推荐