Back to the API: the PPE can pass a single pointer into the program, so multiple arguments have to be bundled up. My solution is this.
现在回到API上来:PPE只能向程序传递一个指针,因此多个参数必须要捆绑在一起传递。
You can't access it through a pointer declared as an Order, nor can you pass it to another method expecting an Order as an argument.
您不能通过声明为Order的指针来访问它,您也不能将它传递到另外一个希望以Order作为参数的方法。
Then, when they pass the pointer back via free , we simply back up a few memory bytes to find this structure again.
然后,当通过free将该指针传递回来时,我们只需要倒退几个内存字节就可以再次找到这个结构。
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.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
应用推荐