位置参数:一种参数,没有参数名字,不是关键字参数。
An argument that does not include a parameter name, so it is not a keyword argument.
你注意到了吗,我们两次把i作为一个参数名字,第一次是在factorial方法里,然后是在嵌套的fact方法里。
Did you notice that we use I as a parameter name twice, first in the factorial method and again in the nested fact method?
添加一个名为get的方法。在此方法中,使其返回类型为模板参数t(如图4所示),然后输入参数名字index,其类型为int。
Add a method called get with return type as the template parameter t from the method (as shown in Figure 4), and an input parameter named index whose type is int.
But this choice of names, both for my functions and also for my parameters or my variables is completely up to me.
但是这个名字的选择,包括我的函数名,和我的参数名,或者变量名都是我定义的。
The prototype is just its return value, its name, and its arguments, if any.
原型就是他的返回值,它的名字,它的参数之类的。
I'm first printing the zero argument which I said is the name of the program itself.
我先打印参数,这是那个程序本身的名字。
应用推荐