short (&m_Short)[2048];unsigned char ( &m_Char )[4096];//通過位移的方式進行數組轉換for (int i = 0, j = 0; i < 2048; ++i){m_Short[i]=(int)m_Char[j++]*256;m_Short[i]+=(int)m_Char[j++];}
- 1 回答
- 0 關注
- 341 瀏覽
添加回答
舉報
0/150
提交
取消