本文介绍了所有的结构标识符自动转发声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然答案warning:从兼容的指针类型的链表数组赋值,我注意到结构关键字perceded任何未声明的标识符被认为是向前声明标识符。

While answer warning: assignment from incompatible pointer type for linklist array, I noticed any undeclared identifier perceded with struct keyword are considered as forward declared identifiers.

有关实例下的)

所有指针结构类型应具有相同的重presentation和对齐要求对方。

这意味着编译器知道如何重新present指针为任何的结构,即使是那些(还)不确定的。结果
只有指向这种结构您的程序交易,所以没关系。

This means the compiler knows how to represent the pointers to any structure, even those that are (yet) undefined.
Your program deals only with pointers to such structures, so it's ok.

这篇关于所有的结构标识符自动转发声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 19:12
查看更多