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

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

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

  • And when you declare a variable, whether as an argument or as literally a local variable, they only live inside of that function.

    当你声明一个变量,不论是一个参数,还是一个局部变量,它们只存在函数的内部。

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

  • It's a common mistake to make if you forget that I've actually declared that variable up top, but wait a minute, I know any time that I use a variable, I have to declare it.

    这是一个通常犯的错误,如果你忘了,之前在前面已经声明了这个变量,等等,我知道在任何时候,我使用一个变量,我必须声明它。

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

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

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

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

  • What's going on underneath the hood is we'll see pictorially X today is that when I declare this X, this variable X here.

    底下所做的,我们将看到,当我声明这个X,这个变量。

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

  • 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 notice unlike a for loop, if you want to declare a variable or increment or decrement to variable, you've got to do that yourself.

    但请注意不像for循环,如果你想声明一个变量,或者变大或变小一个变量,你需要自己完成。

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

  • 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 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,我们在前几个演讲中,一直讨论的东西,任何时候你声明一个变量,你必须指定它的类型。

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

  • So declare as we'll say a variable, a placeholder called counter.

    首先要定义一个名为counter的,变量。

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

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

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

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