I'm going to define a class, and in particular, what I'm going to do, is walk through what that says.
我们碰到了一个问题,这个问题就是,我们想要建立,一个抽象数据类型。
Oh! I'm not supposed to do that. When mom or dad says no, it means no."
噢!我不应该那样做。
当妈妈或爸爸说‘不’的时候,就是‘不’。”
It says if this is a string of length 0 or 1, I'm done. I'm going to return the answer true.
我就会返回答案为真,否则的话我得判断它。
He says,But because I'm a generous mad scientist, before I torture you,what I'm going to do is give you amnesia.
但因为我是宽厚的疯狂科学家,在折磨你之前,我会先让你失忆。
So, the broker calls you up and says, Google wants to buy all of its shares--I'm being silly here.
然后经纪人给你打来电话说,谷歌想购回所有股份...这当然是我编的
And he says, "No, no, I'm too miserable and wretched," And the guy says, "Oh, you must be some kind of a merchant."
他推辞道,不,我的腿脚不利索,那些人答道,你肯定是到处兜售的商人
I mean the problem is, say, Freud says to a patient, " Freud says, "I'm right."
问题是,比如,弗洛伊德对病人说,弗洛伊德就会说,“我是对的“
Toward the bottom of the first page, he says, "I'm a cultivated man.
请看第一页的最下面,他说:“我是一个有教养的人。
You're a neutron. He says, yeah, yeah, I'm a neutron.
你是中子,他说,是是,我是中子。
I'm going to say that an electron's a wave no matter how much my father says differently, and I'm going to get a Nobel Prize for that, and he does.
我要说电子是一个波,无法这与我父亲的观点如何对立,我也要为此得到一个诺贝尔奖,他确实做到了。
The people are sinning, they've already gone astray, and he says: I'm through. I want to destroy the nation, and I'm going to start a new nation again from you, Moses.
人们在歌唱,已经误入歧途,上帝说:我已经看到了,我要摧毁这个国家,我将以你的后裔建立一个新的国家,摩西。
He says, "Well, I'm going to still distribute my story.
他说,好的,我还是要散播我的故事。
and Mr. Kane says, "I'm gonna buy them all, whatever.
凯恩先生说,我无论如何都会买下的。
And you think you're the most popular. And he says, "No, I'm the most popular."
你觉得你是最受欢迎的人。而他说“你才不是呢,我才是最受欢迎的人。”
You can actually declare in C synonyms using special syntax that says, you know what, even though yes at the end of the day I'm implementing false as a 0 and true as a 1, I can abstract away from that detail and use words that are more intuitive to me like true and false.
实际上,你可以用C语言中的特定的语法,你们懂得,虽然到最后,我把0当成假,1当成真来看,我们也可以从这些细节中抽象出来,使用像“真““假“这样更直观的词。
Notice what it says. I'm going to pass in 1 a string, call it s, binds it locally, and it says the following.
然后看接下来的内容,接下来说的是如果这个字符串的长度等于,那么我就成功了。
应用推荐