printf、sprintf、fprintf区别

printf——把格式化字符串输出到标准输出,例如屏幕code printf("%s\r\n",volt); //将volt输出到标准输出中,例如屏幕上 sprintf——把格式化字符串输出到指定字符串字符串 sprintf(volString,"采集的电流%.2f A",i); fprintf——把格式化字符串输出到指定文件中class
相关文章
相关标签/搜索