摘要: 一、char* 字符串格式化 根据输入的int型参数,与字符串拼接。 char*可以替换为char[] int num = 1; char tmpStr[5]; sprintf(tmpStr, "Test%d", num); //tmpStr = Test1 二、获取char*的长度 void ge 阅读全文
posted @ 2023-01-29 14:42 不溯流光 阅读(452) 评论(0) 推荐(0) 编辑