fprintf是C/C++中的一个格式化写—库函数,位于头文件<stdio.h>中,其作用是格式化输出到一个流/文件中
运行如下代码:
#include <stdio.h> void main( void ) { fprintf(stderr, "%s:%d\n", __FILE__, __LINE__); system("pause"); }
将显示
fprintf中使用stderr
原文:https://www.cnblogs.com/puwen/p/9265522.html