[47°09′32″S, 126°43′38″W] Analyzing samples
[47°09′00″S, 126°43′38″W] –no signal–
[47°09′38″S, 126°43′37″W] Raw reading: 0x66501ED1, offset +/-1
[47°09′38″S, 126°43′27″W] Not enough data – sampling finished
[47°09′56″S, 126°43′38″W] Transponder fixed
你管这破玩意叫指针?
内存,通常被严谨地画成下面这个样子,一个下方是低地址上方是高地址的格子楼。
但我今天换种画法,画成下面这个样子。
每个格子代表内存中的 1 个字节(8 位),格子上的数字就代表内存地址,我也直接用 10 进制来表示了,免得 16 进制又算不明白了。
目前内存是完全空的,格子里没有任何内容。
试想一下,如果你忘掉所有的语法规则和编程规范,你会如何描述对这些内存格子的操作呢?
一、类型系统
很简单,往格子 3 处放个数字 29,往格子 6 处放个数字 38,就这么简单直接地描述即可。
 | News, history, & satire. The computer-y articles that Lunduke found the most interesting over the last year. ⌘ Read more
[47°09′12″S, 126°43′38″W] Wind speed: N/A – Cannot comunicate
[47°09′56″S, 126°43′38″W] –no signal–
[47°09′16″S, 126°43′38″W] Wind speed: 94kph
[47°09′38″S, 126°43′31″W] Dosimeter fixed
[47°09′01″S, 126°43′38″W] Reading: 0.65 Sv
[47°09′38″S, 126°43′44″W] Weather forecast alert – storm from SW
[47°09′43″S, 126°43′38″W] 3512 days without news from Herve