You can actually initialize multiple things at once by separating them with a comma, and this is sometimes helpful.
你可以一次性初始化很多东西,通过用逗号分开它们,这有时是有用的。
I've got two parameters, they're separated by a comma. Ah, right. Sorry?
我说的是什么?20和56对吧?注意格式,我有两个参数,它们由一个逗号隔开?
So if I scroll now to the right, I should see a comma after the closed quote and then what two values?
所以我滚动到右边,我应当看到一个逗号,在右引号的右边,然后这两个值是多少?
and after your last name, put a comma.
在姓后面加上一个逗号。
And that's really a placeholder for the comma-separated list of values that I put after those quotes.
这其中还有一个逗号分开的有值的占位符,我把它放到了引号之后。
Well, in just a moment, it happens right after the comma.
在这个逗号后面。
It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
Notice I close the quotes after I'm putting a new line-- after I'm putting this new line, name but then to the right hand side is comma name.
注意反斜杠n后面加上后引号-,后引号,再右边就是逗号。
5 6 1 2 3 So it's 4, 5, 6 comma 1, 2, 3 that are passed into swap and that's why those same numbers end up in A and B. Yeah?
所以这里是,这就是为什么这些数字最终在a和b中,请说?
Let me go ahead and call print F. I'm going to say A equals A and then I need a percent D, backslash, comma A; so this is a little bit of -- more syntax than would be nice, %d but I'm just saying, literally, A equals percent D, and I'm plugging in the value of A for percent D.
我们继续调用printf,我说明A等于,然后我需要%d,反斜杠n,逗号;,所以这个有点--偏向逻辑的,而不偏向美观的,但是我刚说了,字面上,A等于,我用%d插入了A的值。
应用推荐