So we've seen one example of this, this idea of walking through all the integers looking for the square root.
现在计算机速度很快了,我可以把这个数字设的更大点,计算机会去很快的做这个事情。
But really, the computer's just so fast I'm drawing the same string with just a slightly different number again and again after going to sleep one second at a time.
但是真实地,这个计算机到现在为止,我一次又一次用稍微不同的数字,绘画了相同的字符串,在睡眠1秒钟之后。
Instead, right off the bat you have some stupid number and you are dragging that through the calculations.
相反,在交卷时,你得到一些愚蠢的数字,并且你还把它用在整个计算中。
And as you're busy calculating all this, you're walking across Chapel Street and you get hit by a truck and you die.
然而就在你一边忙于计算这个数字,一边经过雅普街的时候,你可能会被一辆卡车撞死。
But we know already from week zero that computers ultimately represent all information with numbers, and if they want to represent letters inside memory, well what do they do or what do they use?
但是自从上周我们已经知道,计算机最终是用数字来表示所有的,信息,如果它们要描绘,在内存中的字母,它们该怎么做,用什么方式呢?
You just need to come up with a convention that maps the numbers that are very easy for a computer to store.
你只需要提出一个使之与数字对应的协定,那样计算机就可以方便地存储它们。
The so called binary system, 1 these zeros and ones that you'd probably have some vague sense underlie all computers today actually reduced to the exact same grade school kind of math and system except with computers, 1 because it's a lot easier to use just two digits, zero and one.
所谓的二进制就是,你觉得模糊的0与,在电脑上计算,事实上可以简化为跟小学数学一样,只是在电脑上计算而已,因为它更容易,仅仅使用两个数字,0与。
A If you want to convert a number like 65 to the letter A, you just have tell the computer "cast that int to a char."
如果你要把一个像65这样的数字转换为字母,你只需要告诉计算机“把那个int型数据转换成char型处理“
And, that gives you a number for the fluorine, minus 0.29. Now, if you do the same for the hydrogen, you'll come up with the same number.
然后给出F的数字,负的0。29,如果同样的用H来计算,你会得到一样的答案。
应用推荐