So I just realized this is a new MacBook Pro that I didn't actually download the compiler onto it apparently.
所以,我才意识到这是一台新电脑,显然我并没有把编译器安装到上面。
> So this time I had the foresight to install this compiler but what I'm gonna do is this.
>,这次我非常有先见之明地,安装了这个编译器,但是我这次要做的却是。
Have the computational hygiene, if you like, to only go through accessors, only go through methods that are actually provided to you as you do this.
请大家注意计算卫生,如果你喜欢这么说的话,只通过访问器访问数据,当你访问数据的时候,通过提供给你的方法来访问。
he's well known for his account of phallic symbols, arguing certain architectural monuments are subconsciously developed as penile representations.
他因对性器表征的解释而为人熟知,他认为某些建筑纪念碑,是潜意识中阴茎表征的展现。
And if you had a motor here that was causing a paddle to move up and down you could cause waves to form at one end of the tank and move from left to right.
如果在水槽里放个发动器,来让水上下起伏,波浪形成于,水槽的一端,然后从左向右扩散。
So I'm actually going to give the benefit of the doubt that the people that didn't get it right were rushing to get out their clickers and didn't have time to think it all the way through.
而且我默认,其他人没有答对的原因,是由于忙着拿出他们的选择器,而没有时间去仔细想。
Here's a nice device, food blocker, if you need a little help.
这是一个很好的设备,食物阻挡器,它可以帮助你减肥
And then deliver those computer signals either to guide the computer cursor on the screen or onto robotic arm to move the arm or perhaps even muscle stimulators to re-animate the paralyzed arm.
然后传递这些计算机信号,操控电脑屏上的光标,或者机器人手臂来活动手臂,或者甚至可能肌肉刺激器来让瘫痪的手臂重新动起来。
Maybe you don't control thermostats in your dorm room, some of you do and some of you don't probably, and maybe it doesn't work very well so it might not be a good example, but imagine a perfect thermostat that you set for a temperature and then the temperature stays the same inside the room no matter what the temperature is outside.
可能你根本就不理卧室里的恒温器,有些人去调它,有些人就置之不理,可能它压根就是坏的,所以这个例子也许并不恰当,但你还是想象一个完美运行的恒温器,你设定温度后房间里的温度就保持不变,不管外面温度是多少
You can compel the compiler to treat some value as a different type of value, at least if it makes intuitive sense that that should be possible.
你可以控制编译器处理,不同类型的数据,至少我们凭直觉,它应该是可能的。
In a compiled language, you have an intermediate step, in which you take the source code, it runs through what's called a checker or a compiler or both, and it creates what's called object code.
而在编译语言里,你就会经过一个中间的步骤,在这种语言里输入源码后,先经过过滤器,或者编译器检查后,它会创建一个叫做目标代码的东西。
So what that means is the compiler is actually going to first "cast" so to speak 13 from whatever it is - to a float -- to a floating point value -- and then perform the division for us.
所以这里的意思是编译器将,做“计算“,譬如13这样一个浮点数,-到另一个浮点数-,然后为我们处理除法。
So p dot Cartesian is a kind of accessor, it's getting access to the data.
这就是为什么,我想要使用访问器的原因。
You get graduate students cheap labor or some other form ofcheap labor and he had them sit in front of the scintillation screen and they count.
如果你成为研究生,或者其他形式的廉价劳动力,他们必须得坐在,闪烁器前面,不停的计数。
So, let's see this eraser actually never works very well so I'm just going to draw below it.
这个清除器不能很好地运行,我将在下面画出它。
It says you gave me something I didn't know how to deal.
它的意思是你给了编译器一个,他不知道怎么处理的东西。
Loader returned 1 exit status.
载入器返回1退出当前状态。
Okay, so a compiler.
我们需要一个编译器。
So C or the compiler's for C are kind of dumb, by definition of the language years ago, whereby, they only know about what they've already seen.
所以C或者C的编译器是有点愚蠢的,根据多年前这个语言的定义,凭借那个,他们只知道,他们所看到的。
The compiler is going to ignore all of this so-called "pretty printing" -- all of this sort of indentation, -- all of this white space -- that's really for the human's benefits, both yours, your colleagues, the teaching staff, and the like.
编译器会忽略所有的叫做,“优美打印“--所有的这类缩进,所有的这些空格-,只是为了我们的利益,也是你的,你的同事,教员的和其他人的利益。
> That lets the compiler know that you want to use some actual compiled code from that library.
>,那是告诉编译器我们想要在程序库中,使用一些当前的编译后的代码。
Nano Rather than use nano on this computer, Vim I'm gonna use a program called Vim, which is just another text editor.
今天我们不用,而是用,另外一个文本编辑器。
The only thing that compiler needs to know is kind of what pattern to look for in the rest of your code.
编译器需要知道的唯一的东西是,用来在剩下的代码中寻找的函数形式。
So I'll now start to get into that habit, even though it's a bit of distracting detail, it's just consistent with the expectations that the compiler really has.
所以我现在将开始养成那个习惯,虽然这是一个有点分散注意力的细节,它只是与编译器,拥有的期望是并存的。
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的模式,如果我记得下载编译器到计算机上的话,我们就能运行下这个,然后看看输出的字节。
It's perfectly legal in Python to type that in and get the value back out.
正如我所说的,我更希望用一个,我刚刚写的访问器。
For at least four decades, people have been building tools called debuggers.
在过去的至少四十年里,人们一直在做一种叫做调试器的工具。
Remember these water tanks where you could put a vibrator in a water tank.
想起那些,里面盛有振动器的水槽了吗。
And then, sex is repressed until you get to the genital stage.
在进入性器期之前,性欲一直是被压抑着的。
When we're just interacting with idol, with the interactive editor or sorry, interactive environment if you like, that's what you expect. What's happening is that we're typing in something, an expression it doesn't know how to deal. It's raising the exception, but is this simply bubbling up at the top level saying you've got a problem.
就发生了其中之一是吧,当你在交互数据处理或者是在交互编辑器,抱歉,任何你喜欢的交互式环境中,你可能会遇到这些,如果你在输入什么内容,譬如一个它不知道怎么处理的表达式,它就会报一个异常,但这是否是简单的,把你遇到的问题冒到最顶层呢?
应用推荐