I'm thinking about a problem, I'm going to show you an example in a second, first thing I'm going to do is say, what is the thing that's going to change every time I run through the same set of code?
我要解决一个问题,我马上会让大家看一个例子,第一件我要做的事情就是,弄明白每次运行同样的指令集时,每次都会改变的东西是什么?
And then he adds this important provision, "At least where there is enough, and as good " left in common for others."
并加上了这一重要补充,“至少在留有足够同样好的东西,共有的情况下,是这样的“
So at the very top, I've coded up the same thing as before: "Give me an integer between one and ten," or rather, -- "give me an integer between one and ten" -- a little different this time.
所以在顶部,我像之前那样对同样的东西进行编码:,“给我一个1到10的整数“,或者,“给我一个1到10的整数“,这次有点不同。
You just change volume to pressure and basically you're looking at enthalpy under a constant -- anything that's done at a constant volume path with energy, there's the same thing happening under constant pressure path for enthalpy.
可以看到这就是把体积换成了压强,一般我们都是在一种恒定状态下,考虑焓的,任何在恒容条件下,能伴随能量变化的东西,也在恒压条件下伴随焓同样地变化,所以你可以经常。
And talk about-- "Yeah, it's the same" hunk, of medal, and wire, and robot, and plastic, this is the same hunk, the same body.
还有,同样的一个东西,可以是金属,电线,机器或者是塑料,只要是同样的东西,就是同一肉体。
A broader set of primitives, but nonetheless the same fundamental thing holds.
一些广阔的基本类型,但还是同样的基本东西。
a Well, on the left-hand side now we say *a so it's the same thing.
嗯,在左边,现在我指明,它是同样的东西。
All right, just move the 2's around.
这是同样的东西,就是这样的。
Because even if the soul is invisible, 5 if, nonetheless, contrary to what Socrates was claiming, invisible things can be destroyed, then maybe the invisible soul can be destroyed as well.
因为即使灵魂是无形的5,像第五点所说的那样,但是和苏格拉底的观点相反的是,无形的东西可以毁灭,那无形的灵魂,也许同样可以毁灭。
I'm going to use the CS50 Library instead for user input I'm saying say something then I'd get a string from the user and I call time s1 and then I say, say something, s2 and then I get another string from the user and call it s2 and apparently this program's purpose in life is to tell me yes or no the user said the same thing both times.
然而我使用的是CS50库来获得用户输入,我说点什么,然后从用户那里获得一个字符串,并把它叫做s1,然后我说点什么,然后从用户那里获得一个字符串,并把它叫做2,这个程序的最终目的是,告诉我两次用户输入的是不是同样的东西。
应用推荐