sprintf与strcat sprintf可以将整数转化为字符串,也可以连接两个字符串。但是用sprintf在连接两个字符串时,容易出现错误。 因此连接两个字符串时候用strcat, 将整数转化为字符串时候用sprintf。 转 … 继续阅读 sprintf与strcat