The array index operator []
has a dereference built into it.
g[i]
is exactly the same as *(g + i)
. So g[i]
refers to a DOCUMENT
, not a DOCUMENT *
and thus you use the member access operator .
instead of the pointer-to-member operator ->
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…