• And notice, immediately after that name, another variable name inside of that.

    明白了吗?,这个名字之后我们看到的是。

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

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

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

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

  • When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.

    当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。

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

  • But in general, the choice of variable name is a great way of commenting your code.

    但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。

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

  • 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.

    关于变量名字我还想说的,另外一点就是,一旦我对变量的名称可以选择,我可以用自己的方式命名,但是,有一些词汇是,不能用来命名变量的。

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

  • 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.

    好,第二个问题:,换种更好的方式来说吧,你们通常喜欢的,方式是,这个测试涉及到一个变量名字,变量在循环外已经被初始化,然后循环内部会改变这个变量的值,因此测试结果会改变。

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

  • I can't use it as a variable name.

    我不能把它当做变量的名字。

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

  • 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当做一个命令来用呢,还是要把它当做一个变量名来用呢?

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

  • Now, unlike high school math or in algebra Z where you call things X and Y and Z, in programming, in computer science, you're actually dealing with humans where it's useful to have a variable name that's more descriptive than X and Y and Z.

    不像高中数学或者代数中,称为X和Y和,在程序设计和计算机科学里,你实际上是在和人打交道,在这里有个描述性比xyz更强的,变量名称是很重要的。

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

  • Let me write a function, in fact the literal thing I would do is to say, identify the things that change, give each of them a variable name because I want to refer to them, and then write a function that captures the rest of that computation just with those variable names inside.

    让我来写个方法,实际上我的意思是,辨别出变化的东西,然后给它们逐个命名以区分,然后写一个用来计算,这些变量的,包括计算过程的方法。

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

  • And when I create a binding, x I'm taking a variable name, in this case x, stored somewhere in a table, and I'm creating a link or a pointer from that name to that value.

    当我创建一个绑定的时候,我有一个变量的名字,在这个例子中是,存在一个表中的某处,然后创建一个连接,或者指针从这个名字指向目标值。

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

  • And the only thing that's differing is the name of the type and the name of the variable I'm using.

    其中唯一的区别是数据类型的名字,和我使用的变量名字。

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

  • And that's fine, because inside of curly braces can you redeclare variables with the same name if you intend to quote unquote shadow the previous variable.

    那是可以的,因为,在花括号里面,你可以重新定义一个,相同名字的变量,如果你想引用之前的变量。

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

  • Because I was taught good style, I'm giving that variable a name that conjures up the idea of its role, which is thankful or not.

    因为我们学习了好的格式风格,我将给那个变量起一个,能使我们联想到它的角色作用,它是满意的或不满意的。

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

  • name So it's-- the name of the variable is name.

    即,变量的名字就是。

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

  • 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变量。

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

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

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

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