D-A-V-I-D I'm not hardcoding in D-A-V-I-D anymore but I can still use a variable.
我不再把名字写死为,而是用一个变量来代替。
D-A-V-I-D Well, if I've got a five-letter word like D-A-V-I-D, well, that's like five bytes and yet we only have the ability thus far in this class to return one thing at a time I can't return five bytes to you, but wait a minute, those bytes by nature of a computer are just stored in RAM.
好的,如果有5个字母的单词,如,那是5个字节,我们只能返回一个东西,而不能返回5个字节,等一下,这些字节被计算机本能地,存储在内存中。
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,代表这是该字符串结束。
D-A-V-I-D So when you get a string like D-A-V-I-D, what's really happening is inside your computer's RAM is going a byte where there's some zeros and ones.
譬如你有这么一个字符串,而在你电脑的RAM里将会变成,一个个由0和1组成的字节。
It's only copying the address that was returned by get string so even though conceptually is the name this program suggests, I really just want to make a copy so that maybe I can make one version of D-A-V-I-D or F-O-O all uppercase or all lowercase or I want to spell check, something.
而只是复制GetSting返回的地址,虽然这个程序表示的名称,我只想做一个拷贝,以便我可以做一个D-A-V-I-D或者F-O-O的版本,大写的或者小写的,或者拼写检查之类的。
D-A-V-I-D It's not copying the F-O-O or the D-A-V-I-D.
它不是复制F-O-O,或者。
应用推荐