So this declares an integer, a variable of type int called I, 0 and initializes it to zero.
所以这里声明了一个整型数,一个叫做I的整型变量,把它初始化为。
the most important variable, they'll look at a lot of things, right.
SAT是最重要的一个条件。他们会注重许多条件。
So, and of course, you know, keeping entropy as a fixed variable for a system like that is extremely cumbersome.
所以,对这样的系统要求它们的熵保持恒定,和一个非常笨拙做法。
The square brackets here, meanwhile, say this is a special type of variable that's got multiple values inside of it.
这里的这个方括号,同时,说明这个是特殊的变量类型,里面有很多复合的值。
And obviously, that ought to involve the variable in some way, or it's not going to make a lot of sense, so this includes the variable, since that's the thing that's changing.
很明显,这跟计数器的变量有某种关系,否则的话就没多大意义了,因此这跟计数器有关,因为它正是每次循环改变的东西。
If you have an experiment and the outcome of the experiment is a number, then a random variable is the number that comes from the experiment.
如果你有一个试验,这个试验的结果是一个数,那么相对应的随机变量,指的就是这个试验结果所对应的那个数
I've found Player 2's best response as a function of q1, and the way I did it, just remember, the way I did was I applied a little bit of 112 and high school calculus, so that's your single variable calculus.
以及参与人2的最佳对策是q1的函数,而且我们用到的数学知识,只是稍微与112和高中微积分有关,仅仅是单变量微积分的知识
These things run for variable amounts of time because they take input, a list of size of some amount.
而这一段的执行时间是可变的,因为它们需要输入一个包含一些元素的列表。
And when you declare a variable, whether as an argument or as literally a local variable, they only live inside of that function.
当你声明一个变量,不论是一个参数,还是一个局部变量,它们只存在函数的内部。
And that test is usually a value of a variable.
测试通常是针对变量的值。
The basic definition-- the expected value of some random variable x--E--I guess I should have said that a random variable is a quantity that takes on value.
最基本的定义,某一个随机变量X的期望值E,我应该提到过,随机变量是一个可以取值的数
All right. Second question: or maybe a better way of saying this, and the general format you're likely to see here is, a test involving a variable name, which must be initialized outside of the loop, and which interior to the loop gets changed, so that the test is going to change.
好,第二个问题:,换种更好的方式来说吧,你们通常喜欢的,方式是,这个测试涉及到一个变量名字,变量在循环外已经被初始化,然后循环内部会改变这个变量的值,因此测试结果会改变。
And remind you that inside of here, I'd better be changing the variable. All right, if that variable that's counting is not changing I'm going to be stuck in an infinite loop, so I ought to that, right, expect somewhere in there, a change of that variable. All right?
我最好改变了计数器的变量值,好,如果计数的变量没有变化的话,我就会被卡在一个无限循环里面,因此我应该【不可闻的声音】,对,在这里的某个地方,改变下计数器的变量,对不对?我要做的最后一件事情就是?
So don't underestimate the value for the next week or two of just inserting printf statements into your code temporarily just to print out what the value of some variable is, or some expression is, so that you can just do a sanity check.
所以不要低估下一两周的重要性,虽然我们只将“printf“语句暂时地植入到,我们的代码中,只是用来打印一些,变量或表达式的值,所以你们提醒一下自己。
So, when you want to figure out the address & of a variable, you say ampersand.
当你想得到一个变量的地址,你可以指明。
OK. The other piece I want to say about variable names is, once I have that choice of variable name, I can use it, but in fact there are a few things that I can't use in terms of variable names.
关于变量名字我还想说的,另外一点就是,一旦我对变量的名称可以选择,我可以用自己的方式命名,但是,有一些词汇是,不能用来命名变量的。
swap I'm going to keep track of a little variable called swap, it's initially true, and as long as it's true, I'm going to keep going, but inside of the loop I'm going to set it to false, and only if I do a swap will I set it to true.
我打算跟踪一个小的变量称为,初始值为真,只要它是真的,算法就会继续,但是在循环里,我打算把他设为假,除非交换发生,就把它设为真。
ArgV You can think of this variable Arg V as literally an array a sequence of chunks of memory that literally are back to back to back in memory, and when you say bracket zero, by convention, you are referring to the variables stored here.
你可以想象这个变量,按顺序排列的一块块内存,依次地在内存中紧邻着的,当你指明,按照惯例,涉及,存储的变量在这里。
There's something called "variable life," which refers to a life insurance policy where the policyholder can make decisions about the investment of the money in the whole life policy.
有种保单叫做"可变寿险",作为终身寿险的一种,投保人可以自主选择,在终身寿险上进行多少投资
You can see that residential investment, as a fraction of GDP, has been very variable through history of the United States since World War II and that it's had a strong relationship with recessions.
住宅投资要计入,国内生产总值,纵观美国自二战以来,这部分投资,变动很大,而且与衰退存在着密切关联
So I start this program by declaring as I did before a global variable X. It is global simply because it is not inside any of my functions.
在程序的开始,我声明,一个全局变量X,它是一个全局的,因为它不在任何一个函数里面。
Well, it turns out C, like a lot of languages, comes out of the box with a whole bunch of built-in variable types.
在C语言还有其他一些编程语言里,都会有一大堆,固定的变量类型。
Now at this point in the story, I have a variable called name, stored inside of that is the string, literally David.
再回到这里,我有一个名为name的变量,而且把字符串David赋给了name变量。
So this line here declares a variable, just storage space called "x" and it's of type "int," which means an integer has to go in it.
这里的这条线声明了一个变量,一个叫做“x“的存储空间,它的类型是“int“,意思是里面存储的是整数型的数据。
i So I have up here at the top of my program a variable called i 0 of type int, and I have to initialize it up here to zero.
所以在程序的顶端我有一个int类型的变量,我需要把它初始化为。
So there's no mention of int, and yet we've been saying for the past couple of lectures, that anytime you declare a variable, you absolutely have to specify its type.
这里没有提及int,我们在前几个演讲中,一直讨论的东西,任何时候你声明一个变量,你必须指定它的类型。
s1 I have a variable called s1 and it's char * of type char * so here we go.
我有一个变量,它的类型是。
x Inside of that structure, create a variable name x, and a value associated with it.
创建了一个变量名为,然后给它赋值,请注意我也在这边做的操作。
A futures market has a prediction going out years into the future of what every financial variable will be doing, so you can see the future in a sense through the futures prices.
一个期货交易市场,预测了未来几年,每个金融变量的变化,因此,在某种意义上,你们可以通过期货价格分析未来市场
Anything where you're actually keeping track of something like a score that's having a variable that you increment -- plus, plus, or decrement, minus, minus, using the appropriate puzzle piece could certainly be compelling.
你需要保存像分数这样的事物时,你就需要一个变量,它可以自加,++,或者自减,要使用正确的拼图。
应用推荐