1.string 中替换指定的字符串 参考网页: http://www.vimer.cn/2009/11/string%E6%9B%BF%E6%8D%A2%E6%89%80%E6%9C%89%E6%8C%87%E5%AE%9A%E5%AD%97%E7%AC%A6%E4%B8%B2%EF%BC%88c%EF%BC%89.html 2.用snprintf 替代 sprintf 转载于:https://www.cnblogs.com/jiqiubo/archive/2011/12/08/2280709.html