I felt guilty day and night C what I was doing was not right.
VOA: special.2010.03.27
And one thing I want to tell you to start out with is something about this c h 3 group here.
有一点需要告诉大家的是,从这个一个碳原子和三个氢原子的组合开始。
It's a math and science class. And I did really badly on the final. I got a C in the class.
它主要就是关于数学和科学的,我期末的时候考得特别差,只得了一个C。
The study and repair work is expected to cost the G.C.I.
VOA: special.2009.12.15
C So here I'm declaring a variable called c, and I'm pretty much translating the formula from the slide using the characters on my keyboard to a floating point value.
这里我声明了一个变量,然后我把那个幻灯片上的公式,用键盘上的字符翻译成了,浮点数值。
And I live now in the United States in Washington,D.C.
VOA: special.2009.11.23
And I can give a name to that, so c p 1 and c p 2 are both going to point to that.
为这个实例分配了空间,现在它是空的,实际上也不完全是空的。
And every night, late at night, I turned the lock of his door and opened it C oh,so gently! And then, when I had made an opening big enough for my head, I put in a dark lantern, all closed that no light shone out, and then I stuck in my head.
VOA: special.2009.05.16
Good, so if I plug q2 = 0 into here, this term disappears and I just get a - c over 2b.
把q2=0代入到算式中,这部分就没有了,只剩/2b
Am I thinking back there, "Well, it starts in C and that's got an E up there and it's got a G"?
我当时是不是在想,这曲子是C调开头的,是在这里升到E调然后到G调吗
So, suppose I tell you to add two vectors, A and B equal to C, and I say, "What's the result of adding A and B?"
假设我告诉你们将两个矢量相加,A + B = C,我问,"A 加 B 结果是什么"
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,之间,因此我将把另外一个结构画在这里。
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的模式,如果我记得下载编译器到计算机上的话,我们就能运行下这个,然后看看输出的字节。
I included the length, let me go ahead and compile this program called Holloway.c. No errors which means that's good.
我包含了那个长度,我们继续,编译这个Holloway,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“的文件里,然后去找它。
Here, too, gets a little ugly and this is why I tend not to like this construct, at least in C, but sometimes it's necessary or it's the simplest way to achieve this goal.
这里也有点难看的,这也是为什么我,不太喜欢这个结构,至少在C语言中,但是有时它是必须的,或者它是达到目标最简单的方法。
I see no Mike Smiths because I'm on page 1 A where the A's simply are so I turn to the B's and the C's S and the D's and so forth and finally I get to the S's but in the worst case I've looked through 1,000 or so pages.
第一页没有找到叫Mike,Smith的人1,因为第一页姓名首字母是,于是我又接着找B,C,D……最终到了字母,但最坏的情况是,我翻了几千页才找到。
So I'll be producing this stuff, this water at cost c and only getting p, which is not only less than c in return.
这就导致成本是c的瓶装水只能卖到p,这个价格都不能捞回本钱呢
So, if I compile and run copy2.c now let's see what happens.
所以,如果我编译并运行copy2。c,现在让我们看看发生什么。
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返回它,我产生了这样的效果。
Having created c p 1 and c p 2, I had this weird looking form here.
我可以在类中建立一些属性,我可以给类增加一些特征。
Today, I'm gonna start writing C code with you but I can't just write it and expect it to do anything.
现在,我和大家一起写C语言代码,但我不指望写出来后就能跑起来。
If I put Alpha and my pair puts Beta, then she gets a C.
如果我选α我对手选β,那么她得C
If I want to get out right now the versions of these things, I can ask what's the value of c p 1 x, and it returns it back out.
你可以在那里看到那些,代表笛卡尔坐标点的东西,如果我想要得到现在,这个类的版本的东西的话。
Again I should have said first, index 0, the first one. I can similarly go in and say I'd like all the things between index 2 and index 4. And again, remember what a b c that does. Index 2 says start a 0. 1, 2. So a, b, c.
我还是要说一遍,索引为0的元素,是第一个元素,我可以要求返回索引,2和4之前的所有元素,请记住2,是从0开始的,那么0,1,2对应的是。
I am going to run a program called Nano nano hello c and type nano hello.c and I'm gonna type the following very quickly without much explanation because we'll dive into this more next week.
我要运行一个Nano程序,键入,我快速写下下面的内容,不打算做过多的解释,因为下周我们会深入了解这些。
So I've got one more piece of bad code on this point and this is buggy five dot c. So as a comment on top bug of this file challenges, what is, in fact, the bug.
所以我在这里得到了一块很烂的代码,这个是buggy5,c,所以作为这个文件顶端的注释,那实际上是那个。
- And that's because hello.c is something I just wrote -- it's not something I downloaded or bought and installed via double-clicking or anything like that -- because I wrote it, compiled it in my current directory, I have to be ever-so emphatic to the computer that it's actually right here.
那是因为hello,c是我所写的东西-,而不是从哪里下载或购买,并通过双击安装的程序,-因为那是我写的程序,在我当前目录下编译的,我们不得不对计算机强调,它是在这个地方的。
I have 3 q1* is equal to a - c over b; and finally divide by 3 q1* is equal to a - c over 3b.
q1*= /b,最后两边同除以3得,q1*=/3b
应用推荐