dos not name a type错误
请教大家
--------------------------------------------
A.h
class A
{
public:
A();
~A();
typedef struct
{
int rx_bytes;
int tx_bytes;
}constat;
typedef struct
{
char usr[32];
char pwd[32];
}adslconf;
};
B.h
#include "A.h"
class A;
class B
{
public :
B();
~B();
private:
adslconf aconf;
constat stat;
};
在编译时,红色两行会提示dos not name a type错误,请教为什么?