C++结构体定义问题
typedef struct {
int N,M;
double C1,C2,S1,S2; // C1=C+ C2=C- S1=S+ S2=S-
double Theths; // 相位角
}
OTideType;
typedef CArray <OTideType,OTideType&> TideArray;
///////////////////////////////////////////////////////////////////////////////////////////////////////
class CCorrectModel
{
public:
double GetFnm(int N, int M);
double GetKn(int N);
void GetOceanTide(double DeltCoef[]);
CCorrectModel();
virtual ~CCorrectModel();
public:
void CalSunPos();
void CalMoonPos();
void SetJUL(double JD);
void ReadPole();
void GetPoleTide(double DeltCoef[]);
void GetSoildTide(double DeltCoef[]);
double PI;
private:
CReadJPL_EPH m_ReadJPL;
double m_X, m_Y, m_Z; // the position of Satellite
double m_Xm, m_Ym, m_Zm; // the position of moon
double m_Xs, m_Ys, m_Zs; // the position of sun
double Xp,Yp; // the parameters of pole
int m_year,m_month,m_day,m_hour,m_minute; // calculation time of pertuSrb
double m_second;
double DayRest;
double ET; // JUL of calculation for perturb
double CoefDot[5]; //保存由于潮汐引起的位系数摄动:C20,C21,C22,S21,S22
TideArray m_OTide; // save the information of ocean tide including N,M,C+,C-,S+,S-
};
大家帮忙看看为什么TideArray m_OTide;这句话会提示出错不允许使用不完整的类型,谢谢。