C+中“结构”与“类型结构”的区别?在C+中,在以下方面是否有区别:struct Foo { ... };和typedef struct { ... } Foo;
3 回答
RISEBY
TA贡献1856条经验 获得超5个赞
struct/union/enumtypedef
struct Foo { ... };Foo x;Foo
struct Foo x;
Foostruct Footypedef:
struct Foo { ... };typedef struct Foo Foo;struct FooFooFoostruct
typedef struct Foo { ... } Foo;typedef.
typedef struct { ... } Foo;typedef
struct/union/enum/classtypedef
- 3 回答
- 0 关注
- 628 浏览
添加回答
举报
0/150
提交
取消
