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.
它一般被称作分布码,然而,对于之前几乎要从头做起的问题,在空白文件中什么都没有,除非你在里面写入些东西。
They might be,for example,in an accident, and come close to being killed,but walk away without a scratch.
比如说在事故中幸存,差点送命,但结果毫发无伤。
In Scratch, the block you may have used for this idea literally says "or" for or; in C, two vertical bars.
在Scratch中,这个你用的程序块,照字面地想法来说“or“表示或者;,在C语言中,是两个竖线。
I think they're purple or so in scratch, or yeah, purple, I think, generally; say hi, for two seconds.
我觉得在scratch中,它们是华而不实的,我觉得,通常,显示hi,只要两秒钟。
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,放上习套题,这个习题集有两个版本,习题集可以指导你,如何下载这个软件。
But for the next week or two when you're writing programs, at least for the first time, generally if you're trying Scratch to debug them like you might have been trying to troubleshoot Scratch, you're probably going to reason - through it by looking through the your code -- -- top to bottom, maybe engage a staff member for help -- but your friend will also be printf.
但是,在接下来的一两周内,当你们写程序的时候,或至少在第一次写的时候,通常如果你在调试程序,就像你们可能已经试着调试过,你们或许是通过查看你们的代码,来推断你们的程序-,从头到尾,可能还需要别人的帮忙-,但是你的朋友也将要打印输出。
So when scratch blocked terms, I'd have a four loop or like a forever loop or something and then another one inside.
当scratch阻塞了,我用一个for循环,或者一个永久循环之类的东西,然后另一个在里面。
When you created a variable in scratch, you could either make it for this sprite only or for all sprites. All right.
当你在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工程,或者其中一小部分,它将不会是令人惊讶的-,本来也不应该是--如果你运行相同的游戏,或者是动画,亦或是用完全不同的设置,来运行拼图游戏,我们将看到相同的处理。
You're not going to start for the rest of your life if you ever need to solve a problem with a computer from scratch, odds are you're going to reach for some off the shelf packages or libraries or tools that other people wrote so that people like us don't have to reinvent the wheel again and again.
如果你想用Scratch来解决问题,却使用其他人写的程序,或者利用现成的资料或工具,这样以来,我们的确可以避免做重复性的工作,但却永远学不会编程。
And for Problem Set 0, too, those of you might think Scratch kind of imploding since I was 6, well then we'll hand you some of these little logic boards which are a variety of real world sensors you can connect to your Mac or PC and push yourself a little further with interactions, with the real world.
对于习题集0也是如此,有些人可能认为从我6岁开始就不怎么用Scaratch了,那么我给你一些小的逻辑板,它们就是各种各样的真实世界的感应器,你可以用它们来连接到你的手机或电脑上去,和现实世界做进一步的互动。
应用推荐