使用fprintf()函数进行标准输出

使用fprintf()函数进行标准输出,将该函数的第一个参数设置为stdout即可:
#include <stdio.h>
int main()
{
	fprintf(stdout,"hello world");
	return 0;
}



参考:
http://zh.wikipedia.org/wiki/標準串流
http://stackoverflow.com/questions/1485805/whats-the-difference-between-the-printf-and-vprintf-function-families-and-when

你可能感兴趣的:(使用fprintf()函数进行标准输出)