Friday, June 09, 2006

c++ class cycle

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

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

class b{
a* n;
};

1 Comments:

Blogger gogo said...

推一下這個
最近有寫到.....

4:47 AM

 

Post a Comment

<< Home