It's one thing to plug in all the numbers and say, "I know Newton's laws and I know how they work."
我们平时只是把数字代进公式,然后说,"我懂牛顿定律,也知道怎么使用"
and then I'm using the language every day.
然后我会每天使用那种语言。
printf I have my includes, standard IO's; so I can use print F, but then I had this thing called a prototype.
我包含了标准输入输出文件,所以我可以使用,然后我有这个原型。
I can use that to return values, which I can then use elsewhere, which I did-- and if I just come back and highlight this-- inside of that computation.
我可以用它来返回值,然后我可以在别的地方使用这些返回值,正是我做的--如果我回过头来,在高亮一下这个--在这部分计算内部。
But through using this sort of computer generation, and then asking people what they think of this face, what they think of that face, scientists have come to some sense as to what really makes a face attractive, both within cultures and across cultures.
但是通过使用电脑合成,然后问人们,他们觉得这个长相如何,那个长相如何,科学家多少了解到,怎样才算是迷人的面孔,无论是在一种文化下还是跨文化的
You take your room temperature liquid helium and you cool it with liquid nitrogen to 77 degrees Kelvin, the new, you're not quite there yet 77k unfortunately right? Then you take hydrogen you cool it would liquid nitrogen to 77, then you can use your hydrogen gas.
首先要有常温的氦气,拿液氮把它冷却到77k,那个新来的7,你不坐在那儿,对吧?,然后用液氮把氢气降温到,然后就可以使用这个氢气了,想要用氢气来做焦耳-汤姆孙实验。
He started with the lowest instruments and then goes to the high instruments and then back to low instruments at the end.
他开始使用声音最低的乐器,然后转向高音乐器,最后回到声音低沉的乐器
Then we do F = ma for these two guys.
然后我们对这两个物体使用 F = ma
3 >> Okay. I'll just go over here to y and get the number 13 set up and then take the wand of dereferencing and just, whoa.
>,好的,我将到y这里,然后存储数字,然后使用魔杖,哇哦。
malloc I'm going to now use this new, fancy function called malloc and I'm going to say x gets the return value of malloc of the size of an int.
我现在使用这个新的,别致的函数,然后我指明x,=,malloc的int型数据的大小,的返回值。
- You then run a compiler, in our case called "GCC" -- -- one of the world's most popular -- and then you can run it with some number of switches, these command line arguments as they're called that somehow influences the behavior of this program.
然后你们运行编译器,在这里我们使用叫做“GCC“的编译器-,这是全球最流行的-,然后你们可以通过一些命令来运行这个编译器,这些命令行参数可以,影响这个程序的行为。
It could be the pair of none, none, it could be the pair of, you know, whatever the answer was that we put up there. That value comes back out and is now available inside the scope of Barnyard. OK. And Barnyard then uses that. Question?
也可以是,你知道,任何我们在这里得到的答案,这个返回的值在Barnyard范围内,就可以使用了,然后Barnyard就使用了这个值,有什么问题吗?
> And Karen. Okay. So just to illustrate this point, and then we'll actually use this in a co-oriented environment.
>,还有Karen,好的,先说明这一点,然后我们将在一个co-oriented的环境中使用这个。
It's a secret number so that if Julius Caesar scrambled his message with the key 13, well, then the recipient had better know what that number is or realistically, -- and this is why it's kind of hard to buy -- into some of these age old algorithms, -- what would an alternative approach be to figuring out Julius Caesar's messages to his generals if he didn't know that secret number was 13?
它是一个机密的数字,以至于,如果凯撒大帝使用密钥13加密了它的消息,然后接收者最好知道那个数字是什么,实际上--这就是为什么很难,破解这些古老的算法-,有什么变换方法使凯撒大帝的将军,可以解密凯撒大帝的消息,如果他不知道,那个机密数字是13呢?
I certainly don't want to assume they're always going to type a three-letter or a four-letter or a two-letter word I want some dynamism but that's fine because get string can get a string of any length, I can then use the string length function to just ask while the program is running how big is the string that I was handed?
当然我不能假设他总是,输入3个字符或4个字符,或2个字符的单词,我想要动态地分配,因为GetString可以获得任意长度的字符串,然后我可以使用strlen函数,来得到那个我传递的字符串,有多长?
And conceptually, the idea of cubing a value feels like you could package that up into a little box, a little tool that takes input, a value, and returns output the answer A* so you don't have to constantly do A star, A*A So this program ,at the end of today, is pretty much the same thing.
概念上,算一个值的立方就像是,你可以把一个值打包放在一个小盒子里,一个用来接收输入的工具,一个值,然后返回一个答案,所以你并不需要一直使用,等等。,A,star,,A,,and,so,forth。,这个程序,最后,是一个差不多的东西。
应用推荐