浮点型(FLOAT)与CHAR型转换

浮点(FLOAT)转换为CHARfloat   float wTemp=3.3;    char sBuf[4];    char* temp;    memset(sBuf,0,sizeof(sBuf));    temp=(char*)(&wTemp);    sBuf[0] = temp[0] ;    sBuf[1] = temp[1];    sBuf[2] = temp[2];    
相关文章
相关标签/搜索