随笔 - 833  文章 - 1  评论 - 106  阅读 - 200万
  2011年11月19日
摘要: 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 阅读全文
posted @ 2011-11-19 15:03 3D入魔 阅读(435) 评论(0) 推荐(0) 编辑
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示