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.
我会计算总价值,然后我会返回两者中的较大值,有点小复杂,但是它就是按照这个决策树在运行。
It's a little puzzle piece that says when the green flag is clicked and this is kind ; of like the beginning of a program; when you double click an icon on your desktop this is how something like that is implemented; it's listening for that double click, it's listening for that green flag.
是一小个按钮,它的意思是,何时点击绿色旗帜,这就好比开始运行程序;,当你双击桌面上的图标,就开始执行操作,桌面的图标需要双击,绿色小旗也等待点击来执行命令。
Imagine I have a little lamp, a little goose- one of those little gooseneck lamps, I'd put it on the table here, I'd put the height about a f-- about a foot off the table. And if I was really good, - I could hit, or time it so that when I hurt- yeah, try again. When I turn this on switch on in the lamp, at exactly the same time, I'm going to hit a key on my computer and start it running.
想象下我有一个那种小雁颈台灯-,我把它放在桌子上,大概离桌子,有一英尺那么高吧,这样挺好的,我可以打开-,或者关闭这灯,并在这同时,我可以让我电脑,开始运行。
And so very often I would find myself with gigabytes worth of data, at night I needed to analyze this data and look for this patterns and frankly the reality was sometimes I could spend 10-15 minutes whipping up a little script, a little program that unfortunately would take eight hours or more to run.
我经常会发现十亿字节的数据,晚上我就需要分析这些数据并,找出模型,坦白说,有时,我会花10-15分钟来编写一个小脚本,一个小程序,但不幸的是,运行它可能需要8个小时或更多时间。
You can very quickly drive yourself nuts by sitting down, thinking, oh, I can write this program, no sweat, and then you write it and then there's a tiny little mistake here, but then there's a tiny little mistake here and here, and all of these stupid little things cascade until you try running your program, and the thing just doesn't work.
如果你只是仅仅干坐着,不费吹灰之力,凭空幻想着我可以把这个项目搞定,你会想地发疯的,也许你会写出一点东西出来,可能会有一点点错误,紧接着这或那又出现一点小错误,这些小错误一点一点地堆积了起来,直到你开始运行你整个项目,你会发现这堆东西根本就不工作。
So I tried running a program in this little black and white window called GCC and we'll see it today working properly that is a so called compiler.
在一个名为GCC的黑色小窗口里,运行我们的程序,然后得出想要的结果,这就是所谓的编译器。
I have connected to the course's central server from my own laptop and via dot slash chart am I about to run a little program that depicts as best we can with what with generally call ASCII art -- -- it's really all you can do in a terminal window like this -- our numbers from the past few years.
我已经通过我的电脑连接到了课程的中心服务器,在我的笔记本电脑上,通过键入“,/chart“,我将要运行一个被描写成,“ASCII码艺术“的小程序-,在一个这样的终端窗口中你们都可以做到-,过去几年中我们的人数。
应用推荐