log 文本存储

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

void main()

{

        FILE *fp = fopen("mydata.txt", "w");
        fprintf(fp, "%-10.4f", 0);
        fclose(fp);

  return;

}

 

posted on 2022-12-05 10:49  feng..liu  阅读(18)  评论(0编辑  收藏  举报