c++字节转整数 char c1[]={1,2,3,4}; int *p1=(int *)c1; int num=p1[0]; CString mg1; mg1.Format(“%x”, num); MessageBox(mg1);