小编mis*_*ite的帖子

当我尝试引用结构体中的值时,为什么我会在 (' 之前得到预期的标识符

我可以free(STRUCTPOINTER->thing1->thing2)

但我不能做free((*STRUCTPOINTER).(*thing1).thing2) ((令牌之前的预期标识符。对于(*thing1

我也不能做free((*STRUCTPOINTER).thing1.thing2)错误,(*temporary)->是一个指针,你的意思是使用'->'吗?

我习惯于编写代码并引用 (*this).format 中的内容。这对于我想做的事情来说可能吗?

c struct pointers reference data-structures

0
推荐指数
1
解决办法
37
查看次数

标签 统计

c ×1

data-structures ×1

pointers ×1

reference ×1

struct ×1