Scratch This Boolean expression allows you to say to scratch if you are touching the mouse pointer, the little arrow, do something. How do we do something?
布尔表达式允许你告诉,当你触碰到鼠标指针,也就是小箭头,程序就相应地做一些事情?
Number two, pointer dereferencing starts at the pointer and follows its arrow over to access its pointee.
第二,指针非关联化从指针开始,通过它的箭头,来使用它的指针数据。
Let's just assume that s1 is a pointer and as an arrow suggests it's pointing at this byte here.
我们假设s1是一个指针,就像箭头所表示的,指向这个字节。
So, for the most part any time we talk about or draw pointers an arrow suffices, which really 71 in there is a number like 71, which is the literal byte that the F is actually in in RAM, but frankly who cares?
所以,每次我们讨论,或者用箭头表示指针,在指针里面有一个数字,如,那是F在RAM中的字节,但是谁在乎它呢?
So, doing a dereference on x follows the arrow to access its pointee.
那么,解除对应x的指针数据的,索引箭头。
I'm going to delete that arrow and actually draw s2 as pointing to this chunk of memory because whereas before this sequence of chars might have lived at address 71 or whatever, well, this one might live at 91.
我不会把那个箭头删除,实际上我画了s2作为,这块内存的指针,因为,这个字符序列存储在地址71或其它的地方,这个可能存储在91的地方。
应用推荐