And just as a fun aside, we also realized as computer scientists that sometimes technology is not the answer.
抛开趣味性不提,我们意识到作一个,计算机科学家来说技术,并不是我们要的最终答案。
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秒钟之后。
But there's an important thing going on here, if I in fact wanted to combine those into a string I should have told the machine to do that, and I can do that, by explicitly saying, take that, which is a number, then add it to that string.
但是这里有个很重要的事情,实际上想要把这些加到一个字符串里面去,我应该告诉计算机去做这个,我应该这么做,通过明确的输入,也就是把这个对象,一个数字,然后把它加到一个字符串里面去。
You can touch almost any part of memory in the computer systems that you want with your program, but do you want to?
通过你的程序,你可以触及到计算机系统,内存的任意部分,但是那是你想要的吗?
So those are in fact the patterns of zeroes and ones, the bytes that would have been outputted had I hello c remembered to download the compiler to this computer and run it on that little hello.c file.
这些都是0和1的模式,如果我记得下载编译器到计算机上的话,我们就能运行下这个,然后看看输出的字节。
So with the problems, that is where you really will get your hands dirty and truly immerse yourself in this world of computer science and programming.
带着这些问题,你就能深入研究,这真的可以使你沉浸到计算机科学,和编程世界中。
So in your mind, if you are now the computer program and you are executing this thing from top to bottom, what just has happened verbally is we are stepping into the line of code that says sort left half of elements.
在你们看来,如果你现在是计算机程序,正在从上到下执行一系列指令,刚才所发生的就是我们现在已执行到了这行代码,它告诉你要对左半部分的元素排序。
how does that actually apply to real computers, right?
是怎么运用到真实的计算机中的呢?
Now this is a rain gauge, and it's sitting on a roof of a building, and when the water falls into this gauge, it sends a signal to the logic unit of the computer, which immediately notifies the memory bank of the computer to seek out its instructions for a rainy day.
这是一个雨量测量器,安装在一个楼房的,屋顶上,当水流入到这个测量器,它就给计算机的逻辑部件发送一个信号,计算机立即通知内存条,为下雨天找出相应的指令。
We need to tell the computer go to the address in x * and put 42 there so is the symbology there & or *?
我们需要告诉计算机,通过x定位到那个地址,然后在那里存储42,这里是用&还是?
应用推荐