整型转字符串 int marketId = 0; char marketIdArr[5] = ""; snprintf(marketIdArr, sizeof(marketIdArr), "%d", marketId); string marketIdStr = marketIdArr;