摘要:
char c = *(char*)pByte;short shrt = *(short*)(pByte+1);long lng = *(long*)(pByte+3);float flt = *(float*)(pByte+7);string str = (char*)(pByte+11);JohnEx:You are not converting char to float; rather you are interpreting a sequence of 4 bytes as a float. Not the same thing at all. There is no need to 阅读全文