检查一个长字符串是否以某个短字符串结束。
Checking whether a longer string ends with a particular shorter string.
借此用户可以组合想要的文本直到字符组合成的字符串结束,窗口会关闭。
The user can compose the desired text in this way until the composition string is finalized and the window is closed.
链接的描述没有明确提到的一个延伸直到字符串结束标记的情况下,而不是标准的,所以在这方面是不完整的。
The linked description doesn't explicitly mention the case of a token extending until the end of the string, as opposed to the standard, so it is incomplete in that respect.
5 So similarly would there be the number 65 next to this then the corresponding number for V-I-D and then there's generally a special character at the end that looks like a zero that says end of string here.
同样,A就是,接着再填上V-I-D对应的ASCII码,在最后还有添上一个特殊的字符,有点像0,代表这是该字符串结束。
So I just have to see, oh, here's a D, let me keep looking, D here's an A, keep looking here's a V, here's an I, here's a D and yet, and this is one tidbit we introduced a week or so ago, how do I now know if I'm just given the address of the start of the string where the end is?
我只需要看到,哦,这里是一个D,让我接着往下看,这里是A,接着这是V,这是I,这是,然而,这是我们一周以前介绍的花絮,如果你给我一个字符串开始的地址,我怎么知道它什么时候结束?
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中的。
应用推荐