By creating special methods for accessing a property, you can ensure that any provided value is sane.
通过创建特殊方法来访问属性,可以确保所提供的任何值是健全的。
You don't have to declare a special variable for it if you don't care about its actual value.
你并不需要为它声明一个特定的变量,如果你不关心它的实际值。
For example, a variable could be set by invoking a function that supplies the value of the SESSION_USER special register to fetch the department number for the current user.
例如,通过调用一个可以为SESSION_USER特殊寄存器提供值的函数来设置变量,使用它取回当前用户的部门编号。
The United Nations cultural organization UNESCO named it a World Heritage Site in 1998 - a designation for places of special physical or cultural value.
VOA: standard.2010.08.05
You don't have to declare a special variable for it if you don't care about its actual value.
你并不需要为它声明一个特定的变量,如果你不关心它的实际值。
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.
它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的值,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志值--反斜杠。
应用推荐