Well, it turns out on most computers an address of the location and memory, aka a pointer, is itself 32 bits.
好的,它是一个计算机内存地址,或者说一个指针,占32位。
and you just wandered around and, and wrote down your e-mail
你只需要来回看看并且写下你的电子邮件地址,
But I often get mails back from students' posts I didn't correctly read their handwriting on the email address.
我给学生寄的邮件经常被退回来,因为他们的字太差,我总是认错他们写的邮件地址。
Now, if I've asked the user for a string and then a moment later I ask the user for another string, well, they're going to end up in different locations in memory just by nature of get string.
现在,如果我要用户输入一个字符串,一会儿之后我要用户输入另一个字符串,他们最终是在,不同的内存地址中。
Once I've got that, I can now start giving some variable names, sorry not, rephrase that, I can give some attributes, I can give some characteristics to these classes.
还有个指向内存中地址的指针,我还可以命名这个指针,因此cp1和cp2都是,指向它们的指针,一旦我创建了它类,我就可以开始赋予。
You don't need to launch a browser and type in a URL address.
也无需启动浏览器,并输入URL地址。
She said it was nearby, but couldn't give me the address.
她说就在附近,但没能给我具体地址。
Those would have been some of the considerations, and so what the Oikistes does when he has picked out in his own mind where he wanted to go, next he goes to Delphi.
这些因素是建立殖民地时需要考虑的,那么如果Oikistes确定了建立地址,那么之后他要做什么呢,下一步他要去德尔斐
Its name is malloc for memory allocation and what malloc does for us is we say, hmm, the user has typed in a three-letter word.
它为我们分配内存地址,它为用户输入的3个字母单词,分配地址。
It occured to me yesterday in my class that maybe someday there won't be social security numbers anymore, and on birth everybody will be given an e-mail address.
我昨天上课的时候想到,或许有天大家出生时,得到的将不是社会福利号码,而是一个邮箱地址。
Just the first one or more generally the address of the first one and then, man, I'll just figure it out from there where the rest of the letters are because by definition of a string, they're back to back to back.
只需要第一个字节的地址,然后,我可以指出之后的,剩下的字母,因为通过一个字符串的定义,它们是紧邻的。
In the first spot, I'm going to store something that says, here's how far you have to jump to get to the next element.
我们存下下一个,元素的地址偏移量,然后,用之后连续的几个单元。
Under that, the handwriting is very important here, your email address.
下面写上你的电子邮件地址,字要写清楚。
The operating system still finds it but this process of getting some of your files bits from here, some from here, some from here, induces a potential slow down.
操作系统根据文件块的地址,仍旧能够找到这一整个文件,这也导致了潜在速度变慢。
This just means hexadecimal notation, which we'll come back to before long so really it just means it's returning the 0 address zero.
这表示的是16进制,我们等下还会讨论,表示的是返回,地址。
So that is this Sunday at 7:00 p.m. Check the website under "problem sets" for its location.
这周日晚上7:00,核对下“习题集“下面的,网站中的地址。
Again, for those-- for whom this is blocked, I'm just dividing the rectangle into smaller squares which is to say that memory is addressable.
这是一整块的,我只是把它划分成一个个小区域,每个小区域都可以设定一个地址。
So this has the effect of starting at location zero and I do s2 bracket I gets s1 bracket I.
这个是从地址0开始,接着,s2【i】,=,s1【i】
2 3 I'm going to call this address one, two, three and I'm going 4 5 6 to call this one 4, 5, 6, right?
我把这个地址叫做,另外一个叫做?
But when you start writing programs, especially when we get to web-based stuff where you want -- to check the user's input -- is it valid, is it an email address, -- and all these different scenarios -- it's actually often useful to be able to just enumerate them or rattle them off using this switching construct instead.
但是当你看是写程序时,特别是当我们,使用基于网络的东西,你想要,检查用户的输入-,它是合法的吗?它是不是一个电子邮箱地址?,所有的这些场景-,实际上它常常是有用的,当你用枚举结构列举它们,或者用它来快速地来说出它们。
One says get the address, one says go there.
一个表示获得地址,一个是定位到那个地方。
Get the address, go there.
获得地址,定位到那个地方。
Now, again, what's the address?
现在,那个地址是什么?
I store in s1 the address of the first byte that the user typed in and by the way that first bite happens to live in this new place called the heap and that's the only update to the story thus far.
我在s1中存储的是用户输入的字符串的首地址,这样第一个字节存储在这块,新的堆的地方,这个是唯一的修正。
We need to tell the computer go to the address in x * and put 42 there so is the symbology there & or *?
我们需要告诉计算机,通过x定位到那个地址,然后在那里存储42,这里是用&还是?
It is the postal address of x and the postal address of y.
它是x的通讯地址,和y的通讯地址。
So at this point in the story, the addresses are still in A 1 2 3 and B; 4, 5, 6 and 1, 2, 3.
在这里,地址还是子啊a和b中,4,5,6,和。
So, the address is 71 so what ends up in s1?
地址是71,那么最终s1是什么?
This was the special value that said to the computer string stops here and because you have that barrier given to you at the end of every string, just the most efficient way you can pass strings around is just by passing the address of their very first bytes, the location in RAM.
这是一个特殊的值,表示的是,字符串在这里结束,因为在每个字符串的末尾,都有那个关卡,这是一个最有效率的方式,你可以通过传递,字符串的第一个字节的地址来传递一个字符串,地址是在RAM中的。
And finally, see if I can track an IP address.
最后,我们看下是否可以跟踪IP地址。
应用推荐