And the fourth case, when I set it up, I'm done.
如果我用了它,那就完了。
select which location it's going to be set up in and I do it by color. Just,
我是依照颜色来选择展示位置的,只是,
ReadFloat We'll look at it in a second. Let me sort of set the stage up for this -- suppose I want to input -- I'm sorry I want you as a user to input a floating point number.
名字叫,我们来看一会,我先来设置下情景-,假设我想输入,抱歉,我希望你们作为用户来输入一个浮点数。
They'll keep trying to get it going, but maybe we should move on with our lives here while this is happening, and we'll click it back at the end, and if we have a nice set up at any point, I'll just stop and we'll go back and we'll look at it again.
它们会一直让它保持运动,但是或许我们应该,在这个过程中离开一会儿,我们在最后点击它,如果我们在每一个点,都有一个好的装置,我就会停止然后,返回再去看看它。
Now we've set it up as a matrix, let's try again that question I asked before.
现在我们就把这个矩阵写好了,我们现在来回答之前的问题
But secretly hidden, I think it's kind of been set up just so that I can meet her, and we met and it took a while.
但说句老实话,我觉得我们是被刻意安排好见面的,然后我们的确见到了对方,但真正产生感情仍花了一段时间。
I did it in 1925, but I've got it set up so that I will pay a hundred pounds in 1926 and I'll get this in 1927.
在25年进行投资操作,并通过安排,在26年投资一百英镑后,于27年收回以上回报
set up shop anywhere. I have a generator with it,
到哪儿都能开店营业。我有个发电机,
I was impressed with the way it's set up
它的构建形式给我留下了深刻的印象。
self y Notice what I also do here, I create self dot y, give it a value, and then, oh cool, I can also set up what's the radius and angle for this point, by just doing a little bit of work.
我创建了,然后给它赋值,然后,噢太酷了,通过做一点额外的工作,就可以得到点的半径和角度了,好,实际上如果。
Again. Basic premise of binary search, or at least we set it up was, imagine I have a sorted list of elements. We get, in a second, to how we're going to get them sorted, and I want to know, is a particular element in that list..
好,二分查找的基本前提,或者是我们建立二分查找的基础,我们已经有了一个排好序的元素列表,我们就需要知道如何来快速的排序,如何从列表中找到特定的元素。
Computing square root. I'm going to capture it in a piece of code, I'm going to be able to refer to it by a name, and I'm going to suppress the details, meaning inside of that computation, you don't need to know what it does. You just need to know, if I give it the right kind of input, it'll give me back an input that satisfies the contract that I set up.
比如计算平方根,我会用一段代码来说明,我将给它命名,并且忽略细节,意思就是在这一段计算过程中,你不用知道它做了什么,你只需知道,如果我进行了正确的输入,它将会给我符合条件的输出。
What I want this class to be is a class where at least sometimes, like on this homework assignment, I set up a model for you, set up the story for you, and then you have to actually figure out how do I set this up properly and how do I solve it out?
我希望这个课程是至少在某些时候,就像这次家庭作业,我为你们设定一个模型,设定故事情节,然后由你们自己实际操作,如何恰当地设计并解决它
Right.? I'm going to set up a variable to say, none what's the answer I want to return, is it there or not. Initially it's got that funny value none.
看我要找的答案在不在数组里面,初始化为,然后建立一个索引。
应用推荐