• All right? The first one is, that test has to involve-- shouldn't have to, the value of some variable.

    好不好?第一件事是,循环开始的测试必须必须-不是一定,一些变量的值。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Because I might have written some code in which I'm expecting that integer particular variable to have an integer value.

    因为我可能写了一些代码,来把一些,变量的类型,指定为。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • - And here as promised is that other operator -- looks a little weird, but because assignment is already using the equal sign to assign one value on the right to a variable on the left.

    在这里正像所承诺的那样,其他的操作-,看起来有点怪异,但是因为“=“已经被用来当赋值运算符了,用来把右边的一个值赋值给左边的变量。

    哈佛公开课 - 计算机科学课程节选

  • 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,我应该提到过,随机变量是一个可以取值的数

    耶鲁公开课 - 金融市场课程节选

  • You don't have to declare a special variable for it if you don't care about its actual value.

    你并不需要为它声明一个特定的变量,如果你不关心它的实际值。

    哈佛公开课 - 计算机科学课程节选

  • So this plus plus is sort of shorthand notation for incrementation. So just add 1 to this variable's value, so now socks on feet is of course 1 and so next.

    那么这个++符号是递增排序的,所以仅仅是对这个变量加一,现在袜子在脚上是一,那么下一个也是这样。

    哈佛公开课 - 计算机科学课程节选

  • All that's going to change, is the value the variable or the value of some data structures.

    或者一些数据结构的值,提醒大家在这块代码里面。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And it's up to me to put that return value in a variable.

    那个放在变量中的值是取决于我所赋的值。

    哈佛公开课 - 计算机科学课程节选

  • And the answer is, you can use a variable anywhere you can use the value.

    答案是,在需要用到值的,任何地方都可以使用变量。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • x Inside of that structure, create a variable name x, and a value associated with it.

    创建了一个变量名为,然后给它赋值,请注意我也在这边做的操作。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Check to see if the variable iters left has a value greater than zero.

    的值是不是大于,如果是的话,执行下面。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Variable stores the value 1 I've got it.

    变量存储了数值。

    哈佛公开课 - 计算机科学课程节选

  • And that test is usually a value of a variable.

    测试通常是针对变量的值。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • What if I don't change the value of that variable inside of the code?

    那么如果在循环内部,我不改变这些变量的值会怎么样?

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I declare a variable called n. I'm not giving it a value yet, so I had better be careful.

    我申明一个变量n,我先不给它赋值,所以我最好小心点。

    哈佛公开课 - 计算机科学课程节选

  • Just to remind you what it does, we bound x to some value, we set up an initial variable called ANS or answer, answer and then we run through a little loop.

    记住你要做些什么,我们给x赋一个值,我们建立一个初始变量,命名为ANS或者。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • If I wanted to use print as a variable name, how do I get the system to decide gee, do I want print as a value for something, or do I want print as a command?

    如果我把print当做一个变量名,我如何让系统来决定,我是要把print当做一个命令来用呢,还是要把它当做一个变量名来用呢?

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • > David: At some point in time, I'm going to have to have declared the variable as a float before I can then hand it to printf as the insertion value for that format strength.

    >,大卫:在一个特定的时间,我将需要,声明float类型这样的变量,那样我就可以把它打印出来,像是格式化优点的插入值。

    哈佛公开课 - 计算机科学课程节选

  • Well, this block here on the left that I came counter counter=0 up with arbitrarily sets a variable called counter equal to 0 and then it forever says that counters value 1 and then it changes the counter by 1.

    大家看一下左边的这一段代码,其中有一个随便定义的变量,它会一直显示counter的值,每显示一次,counter加。

    哈佛公开课 - 计算机科学课程节选

  • And actually, if I don't want to clobber, as we say, overwrite the value of my variable, ; I could declare another one and store the return value in Y; Y so now I have two ints in memory; X and Y, 3 one with two, one with three.

    实际上,如果你不想彻底清除,像我们说的,覆盖那个变量的值,我可以申明另一个变量Y,并在Y中保存那个返回值;,现在内存中有两个int数,X和,一个的值为2,一个为。

    哈佛公开课 - 计算机科学课程节选

  • 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“语句暂时地植入到,我们的代码中,只是用来打印一些,变量或表达式的值,所以你们提醒一下自己。

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定