在一个项目中,我有2类:圆C++头包括
// mainw.h
#include "IFr.h"
...
class mainw
{
public:
static IFr ifr;
static CSize=100;
...
};
// IFr.h
#include "mainw.h"
...
class IFr
{
public float[mainw::CSize];
};
但我不能编译这段代码,在static IFr ifr;
行发生错误。这种交叉包含是否被禁止?
我认为应该是mainw :: CSize – 2009-08-15 11:03:05