• 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?

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

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

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

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

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

  • 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 how to write a program.

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

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

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

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

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

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

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

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

  • 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.

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

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

  • 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.

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

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

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

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

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

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

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

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

  • 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.

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

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

  • 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 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程序。

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

  • 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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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