该对象需要使用一些字段保存值,因此下一步是编写构造器例程本身。
The object needs a few fields to store values, so the next step is to write the constructor routine itself.
如果相应语句通过值类型(通常为结构)进行间接访问,请创建一个变量来保存值类型。
If the statement makes indirect access through a value type (usually a structure), create a variable to hold the value type.
然而,在需要保存值的情况下,依然需要为参数预留空间;尤其在需要使用易失性寄存器传递参数时更是如此。
However, space must still be reserved for parameters in case the values need to be saved, especially since the parameters are passed using volatile registers.
And once I have values, I want to get a hold of them so I can give them names.
如果我有想保存的值,我可以命名这些值,也就是进行了绑定。
What I have now is the following: I can write expressions, do combinations of things to get out values, I can store them away, I can print them up.
我已经讲过如下内容:,如何写表达式,如果把东西混合然后得到结果值,我可以将其保存,也可以将其显示。
So it does that for us so that you can get away with just knowing the address of the first byte and it will make sure that you know when to stop by including the special value so, in fact, get the string if you type in a three-letter word, we allocate four bytes no matter what because we need an additional byte 0 for this special sentinel value back slash zero at the very end.
它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的值,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志值--反斜杠。
应用推荐