浮點型(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];    
相關文章
相關標籤/搜索