ArgC How many words were typed at the prompt, by default, Arg C, should always be at least one.
提示符那里默认要输入多少单词,至少需要一个单词。
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是一个约定。
At the top, I've got some CS50 Library going on, argv standard I/O library; I don't bother mentioning argc or argv because I'm not going to use them in this program.
在顶端,我使用了CS50函数库,标准输入输出库,我没有提到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中,好的,让我们看看这个轻微的变化,那个揭示了我们可以做的,和字符串实际上是什么。
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迭代到;,在里面,我最好不是用;,否则坏事情将会发生。
By convention, it's Arg C, because it means argument count.
按照惯例,它叫ArgC,因为它的意思是参数计数。
应用推荐