• ArgC How many words were typed at the prompt, by default, Arg C, should always be at least one.

    提示符那里默认要输入多少单词,至少需要一个单词。

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

  • Argv2 Let me go ahead and now run Arg V2 with nothing.

    我们现在继续运行。

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

  • ArgV You can think of this variable Arg V as literally an array a sequence of chunks of memory that literally are back to back to back in memory, and when you say bracket zero, by convention, you are referring to the variables stored here.

    你可以想象这个变量,按顺序排列的一块块内存,依次地在内存中紧邻着的,当你指明,按照惯例,涉及,存储的变量在这里。

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

  • meke Argv2 So this is make Arg V2.

    那么。

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

  • 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是一个约定。

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

  • And in this context, the length of that array is stored in Arg C. Well, let's take a look at a slight variance of this that reveals further what we can do and reveals what a string really is.

    关于这点,那个数组的长度被存储在ArgC中,好的,让我们看看这个轻微的变化,那个揭示了我们可以做的,和字符串实际上是什么。

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

  • So here's a program called Arg V, this is fancy speak for argument Vector, a list of arguments for the left or right.

    这里有一个叫做ArgV的程序,这个设想讲述了,参数矢量,从左到右的一列参数。

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

  • Just iterates from zero to Arg C. The indented line here print F is clearly printing a string, as per the percent S, but what is it printing?

    只是从零开始迭代,到ArgC,这个缩进行printf显然是打印一个字符串,就像每一个%s,它在打印什么呢?

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

  • Argc I'm iterating on the outside from I to Arg C, zero to Arg C; I on the inside, I better not use I; otherwise bad things are going to happen.

    我从I迭代到Argc,从0迭代到;,在里面,我最好不是用;,否则坏事情将会发生。

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

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

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

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

  • argv Recompile my program, and now rerun Arg V of foo and bar.

    重新编译我的程序,现在返回foo和bar的。

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

  • Well, turns out that with arrays, not to make this too trippy too soon, but Arg V bracket something is a string, you can also use square bracket notation to go to a specific letter in a string, because little teaser a string is just an array.

    好的,结果用那个数组,不要使这个很快引起幻觉,但是Argv什么的,是一个字符串,你也可以用方括号定位到,字符串中的一个特定的字母,因为一个字符串只是一个数组。

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

  • By convention, it's Arg C, because it means argument count.

    按照惯例,它叫ArgC,因为它的意思是参数计数。

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

  • Well, Arg V bracket 1, is, in fact, a string.

    好的,Argv,实际上是一个字符串。

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

  • 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返回它,我产生了这样的效果。

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

  • Now let's run Arg V1; enter.

    现在让我们运行argv1,回车。

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

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

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

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