If you read a quick plot summary here, I'll just give you a little teaser. All right.
如果你阅读一下这个概要,我将给你一个小的技巧,好的。
So technically, if you ask what does the velocity stand for-- Let me draw a general situation.
从学术角度来说,如果你问速度表示什么,那让我来给你画一个常见的场景
It turns out you can list one, give it a name, and if you use square brackets, that tells the compiler I actually want to put multiple values inside of this -- inside of this variable and how do we do that?
结果是你可以列举一个,给它取个名字,如果你使用方括号,那是告诉编译器,在里面我需要许多的值--在这些变量里,我怎么做到的?
If you were giving a job talk-- and this is for people in graduate school particularly-- If you were giving a job talk and the slide projector breaks, you're screwed.
如果你要做一个职业演讲-,特别是给研究生院做-,如果你正在做演讲,结果投影机坏了,你完蛋了。
For example, if there's a homeowner who you've lent money to and the homeowner is defaulting on the mortgage, the homeowner might wreck the house -that happens all the time -or they might steal things from it.
比如,如果你贷款给一个房主,但是他违约不还贷,并可能在房子里搞破坏,这种事情经常发生,他们还可能会从房子里偷东西
Let me ask another question, if you give this-- and we'll talk about this in a later lecture, but if you give this diet to laboratory animal-- rats, mice, whatever-- it's very common for animals to gain a good bit of weight when given access to this diet.
我们来看另一个问题,如果你给,我们将在以后的课上讨论这个话题,但如果你给实验室动物,像小白鼠之类的,给予某种类型的饮食,这种饮食习惯会使得体重增加
One thinks, in a way, of Welles' line in The Third Man : when he looks down from above and says, "If I gave you 20,000 pounds for every dot that stopped moving, "? would you really tell me to keep my money?"
从某一层面看来,可以假想,Welles,在《黑狱亡魂》中的台词,当他从高处往下看并说,“如果你干掉一个在下面走动的人,我就给你,20,000,英镑,你拒绝得了吗“
It is true that if you give me the time, I can tell you the velocity.
如果你给我一个时间,我就可以明确告诉你速度
If I give you a function, you know how to take the derivative.
如果我给你一个函数,你就知道如何求导
If you give me another vector, there's another pair of numbers.
如果你给我另一个矢量,就会有另一组系数
And she would intercept them as they came across the rickety bridge, or the low bridge, and she would ask them a few questions and ?" conclude with, "Can you write me a story? " You would help me out with my experiment if you'd just write a little story right now."
她会拦住他们,当他们分别横过摇晃的桥和低矮平稳的桥时,她会问一些问题,最后一个问题是“能为我写一个故事吗“,我将解决实验中遇到的瓶颈,如果你能立即给我写一个小故事“
If you pay me ten thousand dollars a month to work for you, I'll work for you and I'll think "I'm doing it for ten thousand dollars a month, that makes a lot of sense," but if I do it for nothing then I have to ask myself, "Why am I doing it?"
如果你一个月给我一万美元帮你工作,我会为你工作,但我会想,”我是为了一万美元才做的,这样更合理“,但如果我一点报酬都没有,那我就会问我自己,”我为什么要做这份工作?”
If we did that, if we moved f minus 32 over to the left, that would give me a floating point answer because f is a float.
如果你那样做,如果我们把,放前面,那将会给我们一个浮点数答案,因为f是浮点数。
int So whereas before I mentioned int, turns out if you wanna put a string in a variable, you have to say this is a string.
先不管我之前提到的,如果你想把一个字符串赋给某个变量,那你必须事先声明这个变量是string类型的。
Right now at this point in our course, whenever you have a problem where there is some body and someone says, "Write all the forces on it", what you have to do is very simple.
现在在我们这个课程里,如果你遇到一道题目,题目给了你一个物体,并要求你,"写出该物体所受的所有力",你要做的其实很简单
We've seen in class that you get garbage values if you don't initialize something to a value so let me actually initialize x to a value.
我们在课程上了解到,如果你不给一个变量,进行赋值,它会获得一个无效值,让我把x初始化为一个值。
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,这是,然而,这是我们一周以前介绍的花絮,如果你给我一个字符串开始的地址,我怎么知道它什么时候结束?
应用推荐