freopen暴力输出数据至记事本

freopen("out.txt","w",stdout);//输出至out.txt,写在printf之前
printf("1\n1\n1\n");
fclose(stdout);//关闭文件

猜你喜欢

转载自www.cnblogs.com/ChangeG1824/p/11826645.html