/*****************************感谢关注*****************************/
//////////////////////////////Creamdog/////////////////////////////比如:class A
{
    B *b;
    ……
};
class B
{
    ……
};这样,肯定会出错,因为在A前B没有定义,所以要这样写:class B;class A
{
    B *b;
    ……
};
class B
{
    ……
};

解决方案 »

  1.   

    也可以这样写!
    class B
    {
        ……
    };
    class A
    {
        B *b;
        ……
    };ok!
      

  2.   

    this error:
    D: \VC++\VCProgram\program\Joint0220\Joint\JointDlg.cpp (222)   :   error C2059:   Syntax error  :   'constant' 
    D: \VC++\VCProgram\program\Joint0220\Joint\JointDlg.cpp (223)   :   error C2039:   'rect'  :   It is not member of 'CRect'. c: \program files\microsoft visual studio\vc98\mfc\include\afxwin.h (225)   :   Please check declaration of 'CRect'. 
    It is a code ...cl.exe in generation. Execution error   Browser   It is a database .in creation. 
      

  3.   

    #include "stdafx.h"
    #include "Joint.h"
    #include "JointDlg.h"
    #include "math.h"
    #include "stdlib.h"
    #include "COMPLEX.h"
    //#include "Fwt.h" ????加入后就出如上的错误
      

  4.   

    constant是不是应该为const
    CRect的成员中有没有rect?注意大小写
      

  5.   

    谢谢各位,原因找到了原来我在定义Fwt.h类中有一个变量定义成Width了,使用rect.Width时两个冲突了,谢谢大家,收获不小。结分(^o^)