A low-level language, we used to call this assembly programming, you're down at the level of, your primitives are literally moving pieces of data from one location of memory to another, through a very simple operation.
一个低级的语言,我们曾经将其称为假设编程,你们只是处于用基本要素,把一些数据碎片,从记忆存储器的一个地方,通过简单的操作来转到另外一个地方。
Cause when you can actually manipulate a computer's memory at this low level, you can steal people's passwords, you can steal their data if you know how that memory is laid out.
因为即使是在这么低的权限下,你也能熟练控制电脑的存储器,你就可以窃取别人的秘密,如果知道相应数据位于哪里的话,你也能窃取别人的数据。
There, they're just storing a database of previously solved problems.
好了,它就是一个存储之前,解决过的问题的数据库。
x >> Okay. I'll dereference the pointer x 42 to store the number 42 into its pointee.
>,好的,我废除这个指针,在指针数据中存储数字。
Your data is actually stored on these platters.
你的数据实际上存储在这些磁盘中。
This is convention, so on almost-- and most any computer you overuse, if you're writing code that uses a char, you're gonna be handed 8 bits or 1 byte to store that particular char.
这是约定,对于大多数-,电脑,当你写代码要用到一个char型数据时,必须先预留8比特或1字节,的空间来存储这个char型数据。
To do that the data travels from RAM along with software signals that tell the hard drive how to store that data.
为了能让数据从RAM中,到硬盘是要使用软件信号告诉硬盘,如何存储这些数据。
So this line here declares a variable, just storage space called "x" and it's of type "int," which means an integer has to go in it.
这里的这条线声明了一个变量,一个叫做“x“的存储空间,它的类型是“int“,意思是里面存储的是整数型的数据。
The hard drive is where your PC stores most of its permanent data.
硬盘是你的PC存储永久数据的地方。
And I don't quite remember from reading or from class how big these things are, well, it turns out -- and this is sometimes useful, later on more likely than now -- but C has a size of operator that takes an argument in parenthesis and it will tell you how much space is used to store that particular data type.
我不太记得类中的这些类型,是多大的,嗯,结果是--这个在以后比现在,可能是更有用的--不过C语言中有个sizeof的操作符,其中括号里有一个参数,它会告诉我们,要存储一个类型的数据,需要占用多大空间。
应用推荐