通常,您可以使用控制符来表示字符串中的简单格式。
Typically, you use control characters to indicate simple formatting within a string.
此外,chef规则以\ z结束,\ z表示字符串的结束。
Also, the chef rule ends on \ z, which is the end of the string.
对于图形字符串,两个字节组成一个字符,使用双字节数来表示字符串的长度。
In the case of a graphic strings, two bytes constitute a character and you use the number of double bytes to represent the length of the string.
Characters are simple. Suppose you want to represent sets of strings, well you basically just generalize the hash function.
字母是是很简单的,如果你想表示一组字符串,基本上你要做的就是归纳出哈希函数。
0 And we'll also see backslash 0 which is actually the special character that's used at the end of a string to say no more string after this point in memory.
还有0,用于存储器中字符串末尾,表示在此之后就,没有字符了。
This was the special value that said to the computer string stops here and because you have that barrier given to you at the end of every string, just the most efficient way you can pass strings around is just by passing the address of their very first bytes, the location in RAM.
这是一个特殊的值,表示的是,字符串在这里结束,因为在每个字符串的末尾,都有那个关卡,这是一个最有效率的方式,你可以通过传递,字符串的第一个字节的地址来传递一个字符串,地址是在RAM中的。
应用推荐