• So in general, when you're running command line programs, they can take input or arguments or parameters or switches or flags.

    一般而言,当你运行命令行程序时,可以把把这些当做输入,像什么参数啊,或开关啊,或标志啊等等。

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

  • Before long we'll see that you can actually put things inside those parentheses which make your programs even more useful.

    不久之后,你们就可以看到,我们是可以在括号里面加参数的,这些参数可以让你的程序更有用。

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

  • So all of these programs or commands that we've been using thus far for the piece set in class, take what we call command line arguments, they are the zero or more words that follow the program's name.

    所有我们一直在课堂上使用的,这些程序或者命令,携带着命令行参数,它们是跟在,程序名的后面的一个或多个单词。

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

  • Well, thus far, I haven't written any programs that themselves take any such arguments, and yet it turns out I can do exactly that.

    到现在为止,我还没有写任何的,它们自己携带参数程序,但是,我完全可以这样做。

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

  • I'm first printing the zero argument which I said is the name of the program itself.

    我先打印参数,这是那个程序本身的名字。

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

  • I'm not wasting time typing out arguments and implementing more complicated function.

    我不会在浪费时间在打印输出参数上,我执行了更复杂的程序

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

  • 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的程序,这个设想讲述了,参数矢量,从左到右的一列参数

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

  • - You then run a compiler, in our case called "GCC" -- -- one of the world's most popular -- and then you can run it with some number of switches, these command line arguments as they're called that somehow influences the behavior of this program.

    然后你们运行编译器,在这里我们使用叫做“GCC“的编译器-,这是全球最流行的-,然后你们可以通过一些命令来运行这个编译器,这些命令行参数可以,影响这个程序的行为。

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

  • Because even though it's a little confusing or a little sort of contradictory, the argument count includes the name of the program itself, -- which can actually be int useful because if someone -- if a producer changes the name of a program by renaming a file, you, the program still have access to your own name by this mechanism.

    因为即使它有点迷惑的,或有点冲突的,参数计数包括程序的名字,那个可以是int型的,因为如果有谁-,如果程序员通过重命名改变了一个程序的名字,你仍然可以用这个机制,使用你自己的名字。

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

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

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

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