• "In 2009 we hosted 75 events around the country C Donor Dudes events C which is a program that we started on high school and college campuses, really to promote donation and encourage young people to share their decision and make sure they know the facts about donation."

    VOA: standard.2010.02.26

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

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

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

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

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

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

  • I'm going to open up a program called positive1.c. I'm going to scroll down to the juicy part here.

    我将要打开一个叫做positive1,c的程序,我们翻到这个有趣的部分。

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

  • I included the length, let me go ahead and compile this program called Holloway.c. No errors which means that's good.

    我包含了那个长度,我们继续,编译这个Holloway,c程序,零错误,非常好。

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

  • I can't give it what it wants," know that when you're writing code and the problems that will remind of this, if you absolutely have to kill your program, you don't have to close the window, CTRL+C reboot crazy stuff like that, generally you can hit CTRL+C and it will just abort the program right where it is, in case you ever get trapped in some awkward situation.

    我不能给它所要的“,当你在写代码时,程序将,提醒这个问题,如果你不得不,关闭这个程序,你不需要关闭这个窗口,重启像那样的疯狂举动,通常你可以敲,它将会在这个地方终止那个程序,假使你陷入了尴尬的处境。

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

  • nano Well, anytime you run a program at the command line, like nano, you've almost always been putting one or more words nano hello c GCC hello c after that program's name; nano hello dot C, GCC hello dot C, and any number of MKDIR for make directory, and then peace at one or similar.

    好的,任何时候在命令行中运行一个程序,就像,你几乎总是用1个或多个单词,在程序名的后面,许多的建立一个新的子目录,然后恢复平静。

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

  • So I'm gonna go ahead and save this file, hello c it's hello.c, dot C hints at the fact that this program I just whipped up is written in a language called C.

    所以我打算继续,保存,并命名为,“,c“表明这个程序,是使用C语言写的。

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

  • I am going to run a program called Nano nano hello c and type nano hello.c and I'm gonna type the following very quickly without much explanation because we'll dive into this more next week.

    我要运行一个Nano程序,键入,我快速写下下面的内容,不打算做过多的解释,因为下周我们会深入了解这些。

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

  • But once you've written a program, "hello world," in a file called hello.c, you Save and Quit.

    不过一旦你们写了一个“hello,world“程序“,并且把它保存为hello,c文件后退出。

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

  • So this is copy1.c, same program as before break, let's really see what's going on here.

    这是copy1。c,我们休息之前的那个同样的程序,我们看看这个到底发生了什么。

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

  • This is a file called Holloway.c. This is-- to be clear, not a program.

    这里有一个文件Holloway,c,不是程序-,我们马上就要清除掉它。

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

  • 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 with the fact that I'm now just back at my prompt is a good thing so now GCC hello c if I type this command GCC hello.c, this is gonna run this program that Apple wrote in this case GCC or someone else wrote called GCC.

    也就是说我们现在安全返回,说明一切正常,现在我输入这条命令:,这代表运行hello,c这个程序,是由“Apple“或其他人编写的,名为。

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

  • Well it's a stupid looking program, but because I had more new line characters, and because I was using percent C, for individual characters, one per line, now I'm seeing dot slash ARG V2, well, now if I go ahead and rerun this with foo, I get this effect as well.

    这是一个看起来很笨的程序,但是因为我有更多的新行代码,因为我使用的是%c,为单个字符使用的,每一行一个,现在我看到的是,/argv2,好的,现在如果我继续用foo返回它,我产生了这样的效果。

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

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

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

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