prev up next   top/contents search

comp.lang.c FAQ 列表· 问题 2.2

Q为什么不

struct x { ... };
x thestruct;
的函数调用是否会工作?


AC 不是 C++。结构体标签的 typedef 名称不会自动生成。请使用struct关键字声明结构体实例

	struct x thestruct;
或在声明结构体时声明一个 typedef
	typedef struct { ... } x;

	x thestruct;
另请参阅问题 1.142.1


prev up next   contents search
关于此 FAQ 列表   关于 Eskimo   搜索   反馈   版权

Eskimo North 托管