error C2146: 语法错误: 缺少“;”
//报错内容
错误 5 error C2065: “m_ComNormal”: 未声明的标识符
错误 1 error C2146: 语法错误: 缺少“;”(在标识符“m_ComNormal”的前面)
错误 3 error C2146: 语法错误: 缺少“;”(在标识符“m_ComNormal”的前面)
错误 6 error C2228: “.GetMatrix_Result”的左边必须有类/结构/联合
错误 2 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
错误 4 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
//代码
#pragma once
extern "C"
{
#include <my++/myhead.h>
}
//////////////////////////////////////////////////////////////////////////
///////轨道电路四端网络系数//////
//////////////////////////////////////////////////////////////////////////
class CCalculateTrackMatrix
{
public:
CCalculateTrackMatrix();
~CCalculateTrackMatrix();
gsl_matrix_complex *GetMatrix_Track();
double GetTrackLen();
double GetCompensationLen();
void CalcNormalTackMatrix();
public:
CCompensationNormal m_ComNormal;
double m_fTrackLength;
double m_fCompensationLen;
gsl_matrix_complex *m_matrix_Track;
};
class CCompensationNormal
{
public:
CCompensationNormal();
~CCompensationNormal();
int SetABCDValue(gsl_complex A, gsl_complex B, gsl_complex C, gsl_complex D);
int SetCapValue(gsl_complex x1, gsl_complex x2, gsl_complex x3);
gsl_matrix_complex *GetMatrix_Result();
gsl_matrix_complex *GetMatrix_ABCD();
gsl_matrix_complex *GetMatrix_CAP();
public:
gsl_matrix_complex *m_matrix_ABCD;
gsl_matrix_complex *m_matrix_CAP;
gsl_matrix_complex *m_matrix_Result;
};
错误 5 error C2065: “m_ComNormal”: 未声明的标识符
错误 1 error C2146: 语法错误: 缺少“;”(在标识符“m_ComNormal”的前面)
错误 3 error C2146: 语法错误: 缺少“;”(在标识符“m_ComNormal”的前面)
错误 6 error C2228: “.GetMatrix_Result”的左边必须有类/结构/联合
错误 2 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
错误 4 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
//代码
#pragma once
extern "C"
{
#include <my++/myhead.h>
}
//////////////////////////////////////////////////////////////////////////
///////轨道电路四端网络系数//////
//////////////////////////////////////////////////////////////////////////
class CCalculateTrackMatrix
{
public:
CCalculateTrackMatrix();
~CCalculateTrackMatrix();
gsl_matrix_complex *GetMatrix_Track();
double GetTrackLen();
double GetCompensationLen();
void CalcNormalTackMatrix();
public:
CCompensationNormal m_ComNormal;
double m_fTrackLength;
double m_fCompensationLen;
gsl_matrix_complex *m_matrix_Track;
};
class CCompensationNormal
{
public:
CCompensationNormal();
~CCompensationNormal();
int SetABCDValue(gsl_complex A, gsl_complex B, gsl_complex C, gsl_complex D);
int SetCapValue(gsl_complex x1, gsl_complex x2, gsl_complex x3);
gsl_matrix_complex *GetMatrix_Result();
gsl_matrix_complex *GetMatrix_ABCD();
gsl_matrix_complex *GetMatrix_CAP();
public:
gsl_matrix_complex *m_matrix_ABCD;
gsl_matrix_complex *m_matrix_CAP;
gsl_matrix_complex *m_matrix_Result;
};
...全文
相关推荐
C语言常见的语法错误
9.error C2146:syntax error:missing ‘;’before identifier ‘dc’该错误是由于语法错误,在dc前缺少“;”符号。
最常见的VC++编译错误信息_fatal_error
Error C2146:syntax error : missing ';' before identifier 'dc'这是一个常见的编译错误,原因是句法错误:在“dc”前丢了“;”。
C++常见错误汇总.doc
10. error C2143: syntax error: missing ':' before '{'该错误是语法错误之一,出现该错误的原因是句法错误:“{”前缺少“;”。
VC++常见错误提示
9. error C2146: syntax error : missing ';' before 'identifier' 'dc'这是一种语法错误,发生在句法错误:在“dc”前丢了“;”。
最常见的20种VC++编译错误信息集合
#### 8. error C2143: syntax error: missing ':' before '{'- **错误含义**:句法错误,“{”前缺少“;”。


