freopen暴力输出数据至记事本 freopen("out.txt","w",stdout);//输出至out.txt,写在printf之前 printf("1 1 1 "); fclose(stdout);//关闭文件