在struct中定义的基础类型float的变量为什么无法通过编译?解决思路
在struct中定义的基础类型float的变量为什么无法通过编译???
typedef struct tagLISTHEADINFO{
CString strName;
SWORD nSQLType;
int nFormat;
bool bWidthMode;
int nWidthImmobility;
float fWidthPercentum; // 这里无法通过编译!!!
}LISTHEADINFO;
错误信息如下:
f:\...h(15) : error C3872: '0x3000 ': this character is not allowed in an identifier
f:\...h(16) : error C2143: syntax error : missing '; ' before '} '
f:\...h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
------解决方案--------------------
你是不是敲上什么中文的符号了
fWidthPercentum;最后的;号是不是中文的?
typedef struct tagLISTHEADINFO{
CString strName;
SWORD nSQLType;
int nFormat;
bool bWidthMode;
int nWidthImmobility;
float fWidthPercentum; // 这里无法通过编译!!!
}LISTHEADINFO;
错误信息如下:
f:\...h(15) : error C3872: '0x3000 ': this character is not allowed in an identifier
f:\...h(16) : error C2143: syntax error : missing '; ' before '} '
f:\...h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
------解决方案--------------------
你是不是敲上什么中文的符号了
fWidthPercentum;最后的;号是不是中文的?