【发布时间】:2013-09-28 19:07:10
【问题描述】:
如果我有一门课本有两个 struct
struct A{
B *ptr; //it says identifier undefined
};
struct B{
};
两者都定义在同一个类中。如上所述,是否可以将结构 B 的指针保存在结构 A 中? 有人可以帮忙吗?
【问题讨论】:
-
把
struct B放在struct A之前。 -
非常感谢 =) 为我工作
-
alot.
-
@jrok oooppps =p 非常感谢您的纠正