当前位置:网站首页>C library function int fprintf (file *stream, const char *format,...) Send formatted output to stream

C library function int fprintf (file *stream, const char *format,...) Send formatted output to stream

2022-07-04 00:57:00 luoganttcc

#include <stdio.h>
#include <stdlib.h>

int main()
{
   FILE * fp;

   fp = fopen ("file.txt", "w+");
   fprintf(fp, "%s %s %s %d", "We", "are", "in", 2014);
   
   fclose(fp);
   
   return(0);
}
原网站

版权声明
本文为[luoganttcc]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202142000504551.html