All right, c p 1 dot y, x I've said assign that to the value 2, 2,0. So now c p 1 has inside of it an x and y value.
一个特定的版本,我现在命名了一个内置变量,并给它赋值了,我刚刚做的也就是给它。
Another really interesting museum actually in D.C. is the Spy Museum
另一个在华盛顿哥伦比亚特区的很有趣的博物馆是间谍博物馆。
In fact, we have some claim, and a Roman writer later on, that there was a treaty back in the eighth century B.C.
实际上,之后一个罗马作家,写到过一些声明,公元前八世纪在埃维厄岛几个城邦之间
When I call the class definition, that is I call c point, I'm going to call it with a specific set of arguments.
来创建实例的时候,也就是调用c,point的时候,我会以一个特定的参数集来调用它,然后将要发生的就是init将会被应用。
I'm going to open up a program called positive1.c. I'm going to scroll down to the juicy part here.
我将要打开一个叫做positive1,c的程序,我们翻到这个有趣的部分。
C You might just scrape by with a C.
你可能只得一个。
So 96 now is a typical constant, so I'm going to give the name c to that constant.
6是一个标准的常数,因此我要用c来代表这种常数
In this case we have a double bond between a and b, and in this case we have it between b and c.
在这种情况下,我们在,A,与,B,之间有一个双键,而在这种情况下,双键在,B,与,C,之间。
And the last one in the major pattern is a half step from B to C.
大调模式的最后,是一个从B到C的半音级
It's a math and science class. And I did really badly on the final. I got a C in the class.
它主要就是关于数学和科学的,我期末的时候考得特别差,只得了一个C。
This is copy2.c. At the very beginning I, again, demand say something and then I declare s1 to be a string, aka char *, and I store in s1 the string the user types in.
这是copy2。c,在开头打印一句话,然后声明s1是一个字符串,也叫做char,*,然后把用户输入的字符串存储在s1中。
Make then assumes I'm in a file called make math2.c and goes and finds it.
假设我在一个叫做“make,math2,c“的文件里,然后去找它。
We're singing below middle C and the ladies are singing up an octave but that's still monophonic texture-- those notes have the same names.
我们唱得比中央c低,而女士们高了一个八度,但这还是单音织体,这些音的音名是一样的
Any time you see a c h 3, this means a methyl group.
一旦你看到一个,C,H,3,的组合,这就意味着一个甲基。
Sounds a lot better.What about this, now going down to the G against the C?
听起来好多了,再试试这个,往下一个音高用G音来搭配C音?
So, we start on C and then we go up to D-- a whole step.
我们从C开始,然后上升到D,一个全音级
So turns out C supports what's called a switch, a switching construct.
所以C语言支持叫做switch的东西,一个开关结构。
Well it's a stupid looking program, but because I had more new line characters, and because I was using percent C, for individual characters, one per line, now I'm seeing dot slash ARG V2, well, now if I go ahead and rerun this with foo, I get this effect as well.
这是一个看起来很笨的程序,但是因为我有更多的新行代码,因为我使用的是%c,为单个字符使用的,每一行一个,现在我看到的是,/argv2,好的,现在如果我继续用foo返回它,我产生了这样的效果。
And I don't quite remember from reading or from class how big these things are, well, it turns out -- and this is sometimes useful, later on more likely than now -- but C has a size of operator that takes an argument in parenthesis and it will tell you how much space is used to store that particular data type.
我不太记得类中的这些类型,是多大的,嗯,结果是--这个在以后比现在,可能是更有用的--不过C语言中有个sizeof的操作符,其中括号里有一个参数,它会告诉我们,要存储一个类型的数据,需要占用多大空间。
If you know you're not gonna output a full string %C but a single character, percent C will get that job done.
如果你不想输出一个完整的字符串,而是输出一个字母,就要用到。
who's a Japanese chemist, Martin Chalfi and then Martin Chalfi who's at Columbia, Robert Chen and Robert Chen UCSD who's at U. C. San Diego.
这是一个日本化学家,还有,他在哥伦比亚大学,还有,他在。
They had these little leftovers in there and that's why we end up with these small distances between B and C That's a big step.
他们还有一些剩余,这就是为什么,B和C之间有一小段距离,这是一个大音级
So among your printouts are a couple of files one called condition1.c. I'm going to change over to my terminal window.
在你们的打印输出中有几个文件,其中一个叫做condition1,c,我将,改变我的终端窗口。
It's in a file called swap.C. Everything should be alphabetical so it should be toward the end of this week's packet and notice that it's almost identical except for a couple of syntax changes.
在一个叫做swap。c的文件中,对于这周末的数据包来说,所有的东西都是字母,请注意,除了几个语法改变,它几乎是一样的。
So, let's just arbitrarily put it between these two in this case here, but actually there's no reason we couldn't also put it between oxygen b and c, so I'm going to draw another structure where we have it here.
那么,让我们任意地将它们放在这两个之间,但实际上我们没有理由,不能把它们放在氧原子,B,与,C,之间,因此我将把另外一个结构画在这里。
But once you've written a program, "hello world," in a file called hello.c, you Save and Quit.
不过一旦你们写了一个“hello,world“程序“,并且把它保存为hello,c文件后退出。
The curly braces are then the C's way of kind of making a puzzle piece that looks like this so you can put stuff inside.
花括号是C语言的一个方式,用来做一个像这样的程序块,所以你可以把代码写在里面。
This is a file called Holloway.c. This is-- to be clear, not a program.
这里有一个文件Holloway,c,不是程序-,我们马上就要清除掉它。
Let's go into hi3.c. So again I have some comments up top.
再创建一个文件hi3,c,还是一样,头部有一些注释信息。
And then at the end of the process I have another whole step from B-flat back to C, and that gets me back to my octave in that fashion.
最后一步,从降B回到C是一个全音级,然后完成了整个八度
应用推荐