• Who was also one of the word's first programmers. So she was trying to write this program, and it didn't work.

    也是世界上最早的几个程序员之一,她正尝试着完成一个,复杂的求反正切的程序。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Let's take a quick glimpse of what it's like to write a real program albeit a very trivial one.

    下面是一个真正的程序,尽管它很简单。

    哈佛公开课 - 计算机科学课程节选

  • And that meant, in English, that this was enough to write any program.

    简而言之,它的意思就是足以编写任何程序。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Why not write the program in a way where you figure out dynamically when the program is run how much memory you need rather than hard coding in two with or within that constant.

    为什么不写一个可以动态的方式写那个程序,程序可以动态分配内存,而不是用常量硬编码两个值。

    哈佛公开课 - 计算机科学课程节选

  • Now as an aside, I'll admit this is a completely useless program, much like the first couple of ones we did because why would you write a program just to solve this?

    说点题外话,我承认这是一个完全无用的程序,跟我们之前写的两个程序一样,我们为什么需要写个程序来解决这个数学运算呢?

    哈佛公开课 - 计算机科学课程节选

  • But you'd like to write your program not in terms of floats and ints and lists, but in terms of mortgages, and CDOs, and all of the objects that you read about in the paper, the types you read about.

    但是你可以不基于,浮点型,整型还有链表来进行编程,而是基于一些房贷类,债务抵押债券类来编程,甚至那些你在报纸上看到的类。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So I am going to on the fly write a very simple little main program that just illustrates some of the syntax that we can then visualize more interesting.

    我很快的写了一个很简单地小程序,来说明一些语法,我们使它变得更有趣些。

    哈佛公开课 - 计算机科学课程节选

  • We'd expect you to write now or perhaps ever since this program was written as part of an obfuscated C contest.

    我希望你们现在就开始写程序,否则你们将会在C语言比赛中,写得非常糟糕。

    哈佛公开课 - 计算机科学课程节选

  • Well, it turns out you can write a program on most any computer.

    问题是你如何在大多数电脑上编程?

    哈佛公开课 - 计算机科学课程节选

  • So let's go ahead and write a slightly more interesting program.

    好,我们继续,写一个颇为有趣的,程序。

    哈佛公开课 - 计算机科学课程节选

  • And it's called Silly because it's really a rather ugly program. It's certainly not the right way to write a program to do this.

    它之所以被称为Silly因为,它实在是一个相当丑的程序,当然以这种方式去写一个程序是不对的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So let's actually write a program with this stuff.

    让我用这个素材写个真实的程序。

    哈佛公开课 - 计算机科学课程节选

  • So with that said, let's write our first program.

    照这么说来,我们应该开始写第一个程序了。

    哈佛公开课 - 计算机科学课程节选

  • So it turns out that, main, yes, is the default function you write, at least in C, when writing a program.

    结果是,main函数,是的,这是你写的默认函数,至少是在C语言中,当写程序的时候。

    哈佛公开课 - 计算机科学课程节选

  • - Now that's a slight lie-- or actually in these days of political debates, a slight misspeaking, a wonderful word-- -- it is technically correct. It is enough to allow us to write any program, but it's not enough to allow us to easily write any program.

    现在还有点说谎的感觉,或者在这些强调政治辩论的日子中,可以说成是有些词不达意-,这是一个绝妙的形容词,在语义上是完全正确的,用这种语言我们可以编写任何程序,但是不能轻松地编写程序。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So how to write a program.

    所以如何来写一个程序呢。

    哈佛公开课 - 计算机科学课程节选

  • You can very quickly drive yourself nuts by sitting down, thinking, oh, I can write this program, no sweat, and then you write it and then there's a tiny little mistake here, but then there's a tiny little mistake here and here, and all of these stupid little things cascade until you try running your program, and the thing just doesn't work.

    如果你只是仅仅干坐着,不费吹灰之力,凭空幻想着我可以把这个项目搞定,你会想地发疯的,也许你会写出一点东西出来,可能会有一点点错误,紧接着这或那又出现一点小错误,这些小错误一点一点地堆积了起来,直到你开始运行你整个项目,你会发现这堆东西根本就不工作。

    哈佛公开课 - 计算机科学课程节选

  • But literally all I can do at this stage is write what we would call a straight-line program, that is, a program in which we execute in which we execute the sequence of instructions one by one.

    但是字面上来说,我们现在学到的,都是所谓的直线程序,也就是,一个接一个的执行,一系列的,指令的程序。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I can certainly try to write the number 13 there, but bam, my program very likely will crash if this chunk of memory was not given to me previously by the operating system and maybe it is owned by the operating system.

    我当然可以在那里写下数字13,但是“嘣“,如果这块内存不是系统预先给我的,我的程序很可能会崩溃,可能这块内存,是系统本身使用的。

    哈佛公开课 - 计算机科学课程节选

  • > So this thing here, when green flag clicked say, oh, hi world, this was perhaps the simplest program we could write in Scratch.

    >,我们先看看这个例子,“点击绿旗“下面显示“,这也许是我们用Scratch软件写出的最简单的,程序了。

    哈佛公开课 - 计算机科学课程节选

  • Last year for the pieces that do vary year to year a bit, last year's first problem set challenged students to write their first or maybe second or third program using this environment called Scratch.

    去年的教材有些地方有略微改动,去年的第一个问题集是让学生,在Scratch环境下,写下自己的第一或第二个或第三个程序。

    哈佛公开课 - 计算机科学课程节选

  • So this is the simplest program you can probably write in this language called Scratch.

    这是一个用SCRATCH语言,编写的最简单程序。

    哈佛公开课 - 计算机科学课程节选

  • So it turns out a really nice shortcut on most systems, oops, is to say if you have a file called hello.c and you wanna turn it into a program called hello, well, make hello just write in the command makeHello and it will do all of that for you automatically and hand you a program called hello.

    就是寻找一种能在大多数系统上运行的更快捷的方式,哇!,也就是说,你有一个hello,c的文件,你想把它变成一个名为hello的程序,那么只需要敲入命令,它就会自动为你生成,一个hello程序。

    哈佛公开课 - 计算机科学课程节选

  • Just write a program to find the max of x and y.

    就写个程序找出浮点数x和y中的最大值吧。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • You hit control O to write out your program.

    按住control,O键来写程序。

    哈佛公开课 - 计算机科学课程节选

  • 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语言写出来就可以了嘛,的确只需要几行代码,就可以让这个程序跑起来,就像上周五的那样,我之所以没让它跑起来,因为编程步骤之一,就是“写“

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定