1、编写代码耍块
#include"stdio.h"
int main()
{
FILE * f;
int a[5] = {1, 2, 3, 4, 5};
f = fopen("1.txt", "w");
for(int i=0; i<5; i++)
fprintf(f, "醒游%d", a[i]);
fclose(f);
return 0;
}
并创建一个txt文件

2、运搁处帮行程序

时间:2026-02-14 07:27:15
1、编写代码耍块
#include"stdio.h"
int main()
{
FILE * f;
int a[5] = {1, 2, 3, 4, 5};
f = fopen("1.txt", "w");
for(int i=0; i<5; i++)
fprintf(f, "醒游%d", a[i]);
fclose(f);
return 0;
}
并创建一个txt文件

2、运搁处帮行程序
