请问long型怎么转化为char*?如题[解决办法]long longVar = 0x30; char charVar = (char)long; char strBuf[20]; sprintf(strBuf, "%d ", longVar);