What lambda that does, it creates on the fly a function, as the program runs. That I can then pass around.
这里的入是在函数运行的时候,由一个函数创建的,然后我会传递这个值。
All right. Then we're going to set low to-- low and high, and we're going to perform exactly the process I talked about.
不满足条件,我们就可以直接停止运行了,好,接下来我们要定义边界值,然后按照我之前。
So those are in fact the patterns of zeroes and ones, the bytes that would have been outputted had I hello c remembered to download the compiler to this computer and run it on that little hello.c file.
这些都是0和1的模式,如果我记得下载编译器到计算机上的话,我们就能运行下这个,然后看看输出的字节。
But we studied what other companies were doing and said, "Okay, let's come up with the Dell process for doing this that's going to be right for our culture, right for our business and that we can execute."
而是研究其他公司的运行方式,然后说,好,我们要建立起戴尔自己的模式,以适应自己的文化,自己的业务,并能完全为自己所掌握“
I got a note from him and I'm still trying to figure it all out That's what happens; the system performs very well and then it becomes vulnerable.
我对他的回答做了笔记,我还在尝试把这个问题搞清楚,事情就这样发生了,一个系统本来运行良好,然后就变得很脆弱。
When the gentleman brought it and install it in my bedroom here, they gave me one simple sheet to tell me how to turn it on, how to get into the program, and then program really explain itself, really invites you to explore the pieces of it, by itself, I mean.
当他们把电脑带来,安装在我的房间里,给了一个简单的小册子,告诉我如何打开电脑,如何运行这个程序,然后程序就自动开始解释了,它让你去探索每个部分,自动的,我是说。
So in fact if I run this, ah, and save it, and it prints out odd.
因此实际上如果我运行这个,啊,先保存它,然后它输出奇数。
Run merge sort on those. By induction, if it does the right thing, I'm going to get back two lists, and I'm going to then merge Them together. Notice what I'm going to do.
在这些上面再运行归并排序,根据归纳,如果这样是正确的,我将重新得到两个列表,然后我会把它们合并在一起。
Well, you could just try it and see if it works, right? That's what testing is all about.
你可以仅仅的去试试运行程序,然后看看结果对不对?这就是测试的内容。
Now if I am difficult with the user positive1 and I compile make positive1, and I then run positive1.
现在如果我和用户有点不和谐,我编译正positive1,然后运行。
Where we put our whole program together, and we say does the whole thing work?
也就是把我们的整个程序组合起来,然后看看它们在一起能不能正常运行?
And then I could do things like again, say, okay having done, that let me just run it here, run that, so I've now got polar point 1, and polar point 2.
然后给它们赋值半径和角度,然后我可以进行刚才的操作,也就是说,对刚才的笛卡尔坐标进行的操作,让我们来运行下它吧,运行下,现在我有一个极坐标点。
> Compiling the program , -- saving it under the name "hello," in the library -- >> David: Okay, good.
>运行程序【无法辨认的声音】,然后把它保存为“hello“文件-,>>大卫:好的,不错。
So actually, let's just run it and then we'll talk about what it does.
那么,让我们运行下程序,然后来探讨下程序的功能吧。
So now when I compile this fourth version with make math4 1 31 and then run math4, I indeed get 1.31.
所以现在我键入“make,math4“来编译第四个版本4,然后运行math4,我得到了。
It'd still give me an answer. It just would not be the answer I'm looking for.
然后运行程序,程序还是会返回一个答案,只是不是我想要的答案。
Suppose instead, I want a machine that can take a recipe, the description of a sequence of steps, take that as its input, and then that machine will now act like what is described in that recipe.
假设换成这个,我想要一台可以安装描述,一系列步骤的结果的方法的机器,把那个当做输入设备,然后那台机器可以像方法中,描述的那样运行了。
This looks fine, right, I'm doing the right thing.
然后返回这个数组,如果我去运行这个程序。
We're checking the end test and incrementing, actually I was going to, I commented that out for a reason you'll see in a second, but I, normally I would keep this on, which would let me, at each step, see what it's doing. If I ran this, it would print out each step. Which is helping me make sure that it's incrementing the right way.
对不对?进行终结测试然后递增,实际上我要,因为某些你们,马上要明白的原因我把这里注释了,但是我通常会一直这么做,这样能让我看到每一步都做了什么,如果我运行这个程序,它会在每一步都,进行显示,这能帮助我让我确信程序是,在以正确的方式递增。
And let's run in one more time zero.
然后让我们在运行一次。
And I've put it in my debugging code.
调试的代码中去,然后运行看看结果。
The format is the same. I'm going to ask for some input, and then I am going to use that procedure to check, is this the right type of value. And I'm trying to use that to do the coercion if you like. Same thing if it works, I'm going to skip that, if it not, it's going to throw the exception.
格式是一样的,我需要一些输入,然后我要用一个过程来检查,是否是正确的值,然后你就可以做强制转换了,如果能运行,那是一样的,我打算跳过这段,如果不正确,那就会抛出一个异常。
Times were different in those days.
程序运行了很长时间然后停止了。
nano Well, anytime you run a program at the command line, like nano, you've almost always been putting one or more words nano hello c GCC hello c after that program's name; nano hello dot C, GCC hello dot C, and any number of MKDIR for make directory, and then peace at one or similar.
好的,任何时候在命令行中运行一个程序,就像,你几乎总是用1个或多个单词,在程序名的后面,许多的建立一个新的子目录,然后恢复平静。
And the problem is, that we want to build this abstract data type, but we'd like to basically know what kind of object is it, and what functions actually belong to it, how do we use them?
然后我对它们运行了这个方法,就是这一小段代码这个方法,这有意义么?,当然没有了,对不对?,因为你知道,当你把两个极坐标,表示的点进行相加运算的时候?
And then I'm going to just return the bigger of the two. Little bit complicated, but it's basically just implementing this decision tree.
我会计算总价值,然后我会返回两者中的较大值,有点小复杂,但是它就是按照这个决策树在运行。
Testing and reasoning. Testing, we run our program on some set of inputs.
测试就是,我们输入一些信息,并且运行我们的程序,然后查看答案。
Let's run merge sort on it, and then we'll look at the code.
让我们在这个列表上运行归并排序,然后我们在看一下代码。
I then click on the shell, rather than hitting F5, try and run it and say, it's not doing what I thought I should do.
然后我点击了命令解释程序,而不是按F5,我运行了程序而它,并没有按照我认为的那样做。
But that little short hand there is doing exactly the same thing. It is adding that value into some digits and putting it back or signing it back into some digits. And I'll walk through that loop and when I'm done I can print out the total thing does. And if I do that, I get out what I would expect.
加上得到的这个数的,但是这个缩写声明其实是进行了同样的操作,它把我们得到的这个数加到一个数上面去,然后用和对这个数进行了重新赋值,在循环中会去遍历字符串,当完成循环后,程序会显示数字的总和,如果我运行,这个程序的话,我会得到我期待的结果。
应用推荐