If I want a copy of the string, I've got to whip out my week 1 skills of just iterating with a four loop from left to right and make copies of those characters.
我需要那个字符串的一个拷贝,我使用,第一周的技巧,从左到右做四次迭代,然后复制这4个字符。
For instance, if I wanted to change the sound that the cat is making, my God, now I have to change it on three places but like 30 places if all I've done is copy and paste.
举个例子,假如你想,改变猫的叫声,我的天啊,你现在必须改变三个地方,但是,我做了30多次复制和粘贴。
So if you don't buy this book this week, I may be able to make the advance copy of the new edition available for some of you next week.
如果你这周不买,可能下周你们,就能买到新版的了
So the very last two lines of code I'm saying this, s2 the original string is s1, the copy of the string is s2, but if I haven't lost you, what are we really going to see when we print this?
最后两行代码是这样的,原字符串是s1,那个字符串的拷贝是,但是如果我没有忘记,当我们打印的时候,我们将看到什么?
So it's an address, it's a pointer, address pointer, synonyms for now, so it's the address of a char so this makes sense because s1 is also the address of a char so if I wanted to make a copy of that address this is absolutely the right syntax.
是一个地址,是一个指针,地址指针,也就是,char型数据的地址,这是有意义的,因为s1也是一个char型数据的地址,所以如果我想要复制那个地址,这个绝对是正确的语法。
应用推荐