• So really, once we start writing more interesting programs, you would have to type out long annoying commands like that to just compile more sophisticated programs.

    实际上,一旦我们开始写一些更复杂的程序时,你们可能要键入那样一些长的,讨厌的命令,来编译跟高级的程序。

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

  • And so this, in fact, when you say your computer stores information as zeros and ones, A you've just typed the capital letter A, that's all that's going on inside.

    事实上,当你说电脑以这些0与1进行信息存储时,你已经键入了大写字母,那就是在计算机内部发生的过程。

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

  • If I type 4 and hit Enter the 4 moves down and the blank space essentially moves up.

    如果我键入4并回车,那么4会向下移动,空白区将会上移。

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

  • When you've been typing in words to the keyboard like your name or any word that you're trying to provide to the user, a string really looks like this.

    当你们通过键盘键入单词,比如你的名字,或者你想提供给用户的任何单词,一个字符串实际上看起来就是这样。

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

  • So now when I compile this fourth version with make math4 1 31 and then run math4, I indeed get 1.31.

    所以现在我键入“make,math4“来编译第四个版本4,然后运行math4,我得到了。

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

  • There's a whole bunch of blocks that we'll look at in more fun detail on Friday but I'm going to pick the easiest one here and I'm going to type Hello CS50 in this string, "Hello CS50", zooming in say how nice the puzzle pieces are nicely interlocked?

    今天我们看到的各种图块,到下周五我会仔细讲解其中的精妙之处,但今天我只想举一个最简单的例子,我要在这儿键入字符串,放大窗口,然后看看这漂亮的图形和文字,是如何美妙地连结在一起的?

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

  • 0 Then I type negative1, zero, maybe negative zero.

    然后我键入-1,0,或。

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

  • You type at the keyboard words that you want to encrypt.

    你从键盘上键入你想加密的单词。

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

  • I print F, I backslash N, just to pretty up the screen, ArgC I then iterate from, I equal zero up to Arg C; so Arg C is the convention.

    键入printf,反斜杠n,来使屏幕变得美观点,然后i开始迭代,从i等于0增加到;,所以ArgC是一个约定。

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

  • 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程序,键入,我快速写下下面的内容,不打算做过多的解释,因为下周我们会深入了解这些。

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

  • So if I type "man sleep," this is going to give me the user's manual for a program called sleep, but there's a gotcha and the problem set it makes clear, sleep notice that it says at top left sleep one.

    所以如果我键入“man,sleep“,它将,给我一个叫做sleep程序的用户手册,但是这里有个参考信息,它使问题更清晰,请注意它指明在左上角。

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

  • But we'll soon see when the commands you need to type become longer and more complicated, they just become annoying to type and annoying to remember so make generally automates this process for us.

    等下我们将体会到,当我们要键入的命令是,很长,很复杂的时候,要键入它们就变得比较麻烦,并且也很难记忆,所以make通常使这个过程自动化。

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

  • The only difference is I don't type "make math2.c" I just type math2.

    唯一的不同在于我只要键入,“math2“而不用键入“make,math2,c“

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

  • So Jordan, playing the role of human is going to type or write something down on this piece of paper, GetInt hand it back to, get int.

    所以Jordan,担任人类的角色,键入,或者在这张纸上写下点东西,把它传给。

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

  • So Arg V bracket I, gives me the Ife string that I typed in.

    那么Argv,把我刚键入的字符串Ife传给我。

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

  • This is math3, so make math3, Enter.

    这是math3,所以键入“make,math3“,回车。

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

  • If they type in bogus characters, it's going to yell at them and make them retry, and eventually I'm going to get handed back an int, which I'm storing in n. Well, if I actually want to judge this number based on its magnitude, well, I can say now, "If n is greater than or equal to one."

    如果他们键入了不合法的字符,它将对他们叫喊,然后叫他们重试,最终我将,得到一个int数,它是存储在n中的,好的,如果我的确想要根据它的量级来判定这个数字,好的,现在我可以指明,“是否n大于等于1“

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

  • So let's go ahead and compile this gcc math1.c.

    我们接着通过键入“gcc,math1,c“来编译这个文件。

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

  • f-o-o If I type foo, I'll get back F-O-O.

    如果我键入foo,我将取回。

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

  • I have connected to the course's central server from my own laptop and via dot slash chart am I about to run a little program that depicts as best we can with what with generally call ASCII art -- -- it's really all you can do in a terminal window like this -- our numbers from the past few years.

    我已经通过我的电脑连接到了课程的中心服务器,在我的笔记本电脑上,通过键入“,/chart“,我将要运行一个被描写成,“ASCII码艺术“的小程序-,在一个这样的终端窗口中你们都可以做到-,过去几年中我们的人数。

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

  • -- Else if n is greater than 4 and n is less than 6 -- 7 let's call it medium -- else if n is greater than or equal to 7, -- less than or equal to 10 -- let's call it "big" -- and if the user typed in zero or negative 10 or 20 or whatever, let's just use the all-inclusive else block and just say, "You picked an invalid number."

    否则如果n大于4,并且n小于-,我们叫它为中间数--否则如果n大于等于,小于等于10--我们叫它为“大数“,如果用户键入了0或者-10或20或其它的,让我们用一个广泛的else子句,只需要说,“你选了一个非法的数字“

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

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

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

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