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

解决方案 »

  1.   

    你是不是敲上什么中文的符号了fWidthPercentum;最后的;号是不是中文的?
      

  2.   

    int     nWidthImmobility; 
             float   fWidthPercentum; // 这里无法通过编译!!!
    }LISTHEADINFO;这里我都重新输入了一遍还是一样的
      

  3.   

    typedef struct tagLISTHEADINFO{
    CString strName;          
    SWORD   nSQLType;         
    int     nFormat;          
    bool    bWidthMode;       
    int     nWidthImmobility; 
    float   fWidthPercentum; // 这里无法通过编译!!!
    }LISTHEADINFO;我将以上全部重输了一遍,问题解决了!!!