fputs 向文本写数据
#include<iostream>
#include<cstdio>
#include<algorithm>
#pragma warning(disable : 4996)
using namespace std;
int main() {
char str[1000] = "123hello allen C语言";
FILE *fp = fopen("out.txt", "w");
fputs(str,fp);
fclose(fp);
return 0;
}

浙公网安备 33010602011771号