如何存儲(chǔ)負(fù)數(shù)

len = sprintf( mCmdParam.ByteWrite.mByteBuffer, "%02d,%02d-%02d-%02d %02d:%02d,%u,%u,%u,%u,%u,%u,%u,%u,%u\xd\xa", (UINT16)sbno, (UINT16)((0x07&curtime[6]>>4)*10 + (0x0f&curtime[6])), (UINT16)((0x07&curtime[4]>>4)*10 + (0x0f&curtime[4])), (UINT16)((0x07&curtime[3]>>4)*10 + (0x0f&curtime[3])), (UINT16)((0x07&curtime[2]>>4)*10 + (0x0f&curtime[2])), (UINT16)((0x07&curtime[1]>>4)*10 + (0x0f&curtime[1])), (UINT16)ia, (UINT16)ib, (UINT16)ic, (UINT16)ua, (UINT16)ub, (UINT16)uc, (UINT16)pft, (UINT32)pt, (UINT32)qt); /* 將二制制數(shù)據(jù)格式為一行字符串 */

這句應(yīng)該如何修改/?

(UINT32)pt pt這個(gè)值是負(fù)誰.如何存到文本文件中.


比如就是-2786,如果存,看到數(shù)據(jù)中都是定義無付號(hào)數(shù)字.


實(shí)際在存儲(chǔ)的時(shí)候,你應(yīng)該是存儲(chǔ)負(fù)數(shù)的補(bǔ)碼


我就是存儲(chǔ)的補(bǔ)碼.(long)pt 存儲(chǔ)后.為65535,還是不對啊.能否舉個(gè)例子.


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频