Friday, June 09, 2006

c++ class cycle

當class間元素定意有cycle時,使用類別的前置宣告

class b;
class a{
b* n;
};

class b{
a* n;
};