VOA: special.2010.04.12
F Then I'm going to print a capital F just % 1f C to be aesthetically interesting equals another %.1fc.
然后我将打印大写字母,使其比较美观的,等于另一个。
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.
这里我声明了一个变量,然后我把那个幻灯片上的公式,用键盘上的字符翻译成了,浮点数值。
VOA: special.2009.06.07
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将会被应用。
So 96 now is a typical constant, so I'm going to give the name c to that constant.
6是一个标准的常数,因此我要用c来代表这种常数
Suppose I get an A and my pair gets a C, then sure I get that initial payoff of 3, but unfortunately I can't sleep at night because I'm feeling so guilty.
假如我得到A我对手得C,没错我开始得到3单位效用,但我感到愧疚,我因良心受到谴责
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,我将,改变我的终端窗口。
I'm going to call it c point just to make it a little shorter.
但是现在我要去对它做一些改动,那么新版本的类的意思也就是。
I'm going to open up a program called positive1.c. I'm going to scroll down to the juicy part here.
我将要打开一个叫做positive1,c的程序,我们翻到这个有趣的部分。
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程序,键入,我快速写下下面的内容,不打算做过多的解释,因为下周我们会深入了解这些。
printf Well, notice I'm calling print F with percent C, and then I'm printing out each of these letters one at a time.
好的,请注意我用%c来调用,然后我打印出一个一个打印出这些字符。
Make then assumes I'm in a file called make math2.c and goes and finds it.
假设我在一个叫做“make,math2,c“的文件里,然后去找它。
So just to reinforce this, I could run gcc math2.c but I'm getting a little tired of this a.out convention and recall that there's this utility called "make" that right now doesn't really improve much, other than give it a better name.
所以我强调这点,我可以运行“gcc,math2,c“,但是我不是很喜欢a,out这个默认的名字,想取消它,那么这里有个叫做“make“的命令“,这个命令现在没有很大的改进,只是把用来更改名字用的。
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……最终到了字母,但最坏的情况是,我翻了几千页才找到。
I'm gonna call my file hello.c. There's a little bit GUI-- of distraction here but this is because this is not a GUI, CLI a graphical user interface, this is a CLI, command-line interface, which just means there are no windows and icons.
我先给我的文件命名为“hello,c“,你们也许会觉得有点烦,因为不是,图形用户界面,这是,命令行界面,这意味着没有窗口,没有图标。
So with the fact that I'm now just back at my prompt is a good thing so now GCC hello c if I type this command GCC hello.c, this is gonna run this program that Apple wrote in this case GCC or someone else wrote called GCC.
也就是说我们现在安全返回,说明一切正常,现在我输入这条命令:,这代表运行hello,c这个程序,是由“Apple“或其他人编写的,名为。
Conversely, if I chose a Beta and my pair chooses an Alpha, so I end up with a C and she ends up with an A, then you know I have a bad time explaining to my parents why I got a C in this class, and I have to say about how I'm going to be president anyway.
相反如果我选β我对手选α,我得到C她得到了A,我回家后很难跟父母,解释为什么我只得到了C,然后我还得表示下雄心壮志
应用推荐