string name= On the left hand side string name equals, well, name what would we call this thing called name, in general, using last week's nomenclature?
左边的,先等等,我们称之为,一般是根据系统命名法?
FOR c It's going to say FOR c, which was my name for the character in that string.
那么循环要去做什么呢?循环要去说,也就是字符串中字符的名字。
When you've been typing in words to the keyboard like your name or any word that you're trying to provide to the user, a string really looks like this.
当你们通过键盘键入单词,比如你的名字,或者你想提供给用户的任何单词,一个字符串实际上看起来就是这样。
Now at this point in the story, I have a variable called name, stored inside of that is the string, literally David.
再回到这里,我有一个名为name的变量,而且把字符串David赋给了name变量。
When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.
当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。
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的版本,大写的或者小写的,或者拼写检查之类的。
应用推荐