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.
你可以想象这个变量,按顺序排列的一块块内存,依次地在内存中紧邻着的,当你指明,按照惯例,涉及,存储的变量在这里。
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或者,因为我不会在这个程序中使用它们。
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的程序,这个设想讲述了,参数矢量,从左到右的一列参数。
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什么的,是一个字符串,你也可以用方括号定位到,字符串中的一个特定的字母,因为一个字符串只是一个数组。
Well, Arg V bracket 1, is, in fact, a string.
好的,Argv,实际上是一个字符串。
应用推荐