We've used the fundamental equations that are hiding down here, out of sight but never out of mind.
我们利用了,写在这里的基本方程,虽然没有注意它但却时时刻刻记者它。
And right now, you know, we are working on a paper together which is helping me out a lot.
现在我们正一起写一篇论文,他的参与真的给我带来了很大帮助。
If we want to write sodium, for example, sodium 23, 11. Well, 11 means it is sodium.
如果我们想写钠,举个例子,钠23,11,好了,11表示它是钠。
Alright, we are back so we just wrote a programming pseudocode or walk through a programming pseudocode.
继续上课,刚才我们只写了一个伪代码,或者说简单地过了一下。
And they formed seven undergraduates and we went around to peer institutions of Princeton, and wrote a report.
他们选了七名本科生,然后我们去参观了一些,普林斯顿大学相似的机构,写了一篇报告。
All right. So most of you got that, though there is this little sub-set we have thinking that we have one, so let's actually write this out here.
好,大部分人都答对了,虽然还,有些人没对,让我们把这个写下来。
Let's check it out. I've written a little bit of a test script here, so if we test cell sort, and I've written this so that it's going to print out what the list is at the end of each round, OK.
我们来检查检查,我写了一个小测试脚本,我写这个脚本来测试单元排序,它能够打印出每一轮结束后,链表的是什么样子的。
Now we know that Milton was blind probably well before the time he began writing Paradise Lost, and therefore, of course, he was then unable to read.
现在我们知道弥尔顿很可能失明了,这早于他开始写《失乐园》的时间,因此,他不能通过眼睛阅读。
If we're not having too much luck with our slides this morning, I went ahead and put this one up on the board here.
由于我们今早,没运气放幻灯片,我就把把它写在黑板上了
Secondly, as we go to the more advanced part of the course, we'll take a result from this part of the blackboard, stick it into the second part and keep manipulating, so if I screwed up in the beginning and you guys keep quiet, we'll have to do the whole thing again.
其次,随着我们课程的深入,我们需要把黑板这边的计算结果,抄到黑板的那边,不停地这么做,如果我一开始就写错了,而你们又不出声,我们就得全部重新来过
So, we spend a lot of time writing what's called user narratives of this user or this person.
所以我们花了很多时间写,各种用户的体验。
Yeah, okay while we're here, why don't we do the same for my pair?
好了,我们再把对手的情况也写下来
sort of a response to all these different readings that I had to read for this one class.
就是在我们读了许多材料后,写一下感想之类的。
We don't have anything written in Shakespeare's Own handwriting as we don't know what he wrote.
我们没有任何莎士比亚,手写的东西,不知道他写了什么。
Then when you're done you print the page, and we have a special instruction for that in just a moment, and then you'll have what you need for the concept sheets.
当你完成的时候,请把这页打印出来,我们马上会对此做出详细说明,这样你就得到了写观点报告需要的材料
So with that said, let's write our first program.
照这么说来,我们应该开始写第一个程序了。
OK. Once we've got that, we can certainly, though, do things like this.
好,一旦我们写好了,我们当然就可以实现这样的目的了。
I've put on the board up here the following and we're going to review this.
我在白板上写了一下这些,我们来复习一下
So on one side here we've got the "Confutatis maledictis."
所以在这一侧我们写了,羞惭无地
I've written a little for loop, which is going to iterate over all of the elements in the list.
让我们先看看这儿的代码,我已经写了一个循环语句,用来迭代处理数组中所有的元素。
So under the R group there we've got positive, happy, secure.
组下面我们写了积极,愉悦,安详
We could get away with just 23 Sodium you could write sodium like this.
从23,钠,我们就知道了,你就可以像这样写钠。
Let's try to do part of it in the head, so I can just write down the answer.
让我们先试试前面的一部分,我就直接写答案了
When we start writing code, you're going to see that difference, but for now, don't worry about it, I just want to plant that idea.
当我们开始写代码的时候,你就会看到区别了,但是现在别担心,我只是想让你们初步有个印象。
Now we've set it up as a matrix, let's try again that question I asked before.
现在我们就把这个矩阵写好了,我们现在来回答之前的问题
cs50 h It's not called standard io.h, it's called cs50.h. That's where the code we wrote for you will live and then we'll see how to do this in examples today onward but we wrote for you some tools, some functions that calls GetChar for get a character.
当然不是标准输入输出库了,而是叫做,这里面有一些我们写的代码,等一下我会举几个例子,我们写了一些函数,比如GetChar,意思是得到一个变量。
So, if we take another hydrogen, we stick it over here, 1s, we know we have an electron here.
对于另外一个氢原子,我们写在这儿,1S,我们知道我们有了一个电子。
We write specifications of our functions.
此外我们还为方法写了说明。
Well, for a thing called main which itself is a function but a function I wrote, a tool I am writing at the moment not like printf which someone else wrote long ago, I have to say where does main start, where does main end, and I do that by using these curly braces.
至于这个名曰main的函数,由我们自己写的函数,也是一个工具,只不过由我们自己编写,而不是像printf那样已经由前人写好了,我们必须要说明main在哪开始,在哪结束,这样我们就要用到大括号了。
And that then let's me get to, basically, base this code. Having done that, height I simply call base with get float, I call height with get float, and do the rest of the work.
现在让我们看看这段代码,其实已经写好了,我简单的调用下,用来得到一个浮点数,再调用下,来得到另外一个浮点数,然后做剩下的工作就可以了。
应用推荐