typedef struct tag_guid
{
ULONGLONG utime;
ULONGLONG umac;
}tpguid; class A
{
private:
int m_teset1;
}; //其他文件中的前向声明,注意结构体和类的区别
typedef struct tag_guid tpguid;
class A; //使用,注意使用前向声明的成员必须是指针
class B
{
private:
tpguid* m_guid;
A* m_a;
};
转:http://blog.****.net/rabbit729/article/details/7056415