【发布时间】:2015-04-12 21:04:28
【问题描述】:
struct Books
{
char title[50];
char author[50];
char subject[100];
int book_id;
} book;
到底什么是“书”?
【问题讨论】:
-
它是一个
struct Book类型的变量。 -
这样做的好处是您可以像这样使用未命名的结构:
struct { int x; int y;} point; -
@hacks 类型为
Book?你是说Books的类型吗? -
@User;不,我的意思是
struct Book类型。Book本身不是一个类型。它是给定struct的标签。 -
@hacks 为什么你删除了
s?
标签: c struct declaration definition